Created
November 22, 2020 22:58
-
-
Save jamiehaywood/95dd604890648cceb3b4c8b6e4f027e1 to your computer and use it in GitHub Desktop.
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 { Route, Switch } from "react-router-dom"; | |
import { GlobalStateProvider } from "./GlobalStateProvider"; | |
import PageOne from "./PageOne"; | |
import PageTwo from "./PageTwo"; | |
function App() { | |
return ( | |
<Switch> | |
<GlobalStateProvider> | |
<Route exact path="/"> | |
<PageOne /> | |
</Route> | |
<Route exact path="/two"> | |
<PageTwo /> | |
</Route> | |
</GlobalStateProvider> | |
</Switch> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment