Created
July 31, 2020 02:44
-
-
Save woodRock/67c5ba8fe930b8ccb25c46872de08ab0 to your computer and use it in GitHub Desktop.
React Context Provider
This file contains 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 from "react"; | |
import ReactDOM from "react-dom"; | |
import App from "./App"; | |
import ContextProvider from "./context"; | |
ReactDOM.render( | |
<ContextProvider> | |
<App /> | |
</ContextProvider>, | |
document.getElementById("root") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment