Created
March 1, 2020 17:46
-
-
Save paigen11/b0aeef0f1ed24d4c409af5a19182e3eb to your computer and use it in GitHub Desktop.
Initial createContext file for a new context instance in a React application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createContext } from 'react'; | |
const CheckoutDrawerContext = createContext({ | |
showDrawer: false, | |
toggleCheckoutDrawer: () => {}, | |
}); | |
export default CheckoutDrawerContext; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment