Last active
February 11, 2021 19:16
-
-
Save matheusml/2e6b417fbc8ce086d04b833a1407c7a8 to your computer and use it in GitHub Desktop.
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 React, { Fragment } from 'react'; | |
const user = { | |
email: '[email protected]', | |
}; | |
export const UserContext = React.createContext(); | |
function App() { | |
return ( | |
<UserContext.Provider value={user}> | |
<Fragment> | |
<Header /> | |
<Main /> | |
<Footer /> | |
</Fragment> | |
</UserContext> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment