Download wp-calypso/packages/composite-checkout/src/lib/checkout-context.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/lib/checkout-context.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/composite-checkout/src/lib/checkout-context.ts
-
curl -L -o checkout-context.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/composite-checkout/src/lib/checkout-context.ts
253 Bytes
| import { createContext } from 'react'; | |
| import { CheckoutContextInterface } from '../types'; | |
| const defaultCheckoutContext: CheckoutContextInterface = {}; | |
| const CheckoutContext = createContext( defaultCheckoutContext ); | |
| export default CheckoutContext; | |