Download wp-calypso/client/me/purchases/payment-methods/controller.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/payment-methods/controller.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/purchases/payment-methods/controller.js
-
curl -L -o controller.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/payment-methods/controller.js
243 Bytes
| import { createElement } from 'react'; | |
| import PaymentMethodsComponent from 'calypso/me/purchases/payment-methods/main'; | |
| export function paymentMethods( context, next ) { | |
| context.primary = createElement( PaymentMethodsComponent ); | |
| next(); | |
| } | |