Last active
February 16, 2019 09:17
-
-
Save nightspirit/83b50d1b9f7b91cdce44044562034e40 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 { BrowserRouter } from 'react-router-dom' | |
import Routes from 'Routes' | |
import { useAppReducer, AppReducerContext } from 'Hooks/useAppReducer' | |
export default function App () { | |
const appReducer = useAppReducer() | |
return ( | |
<AppReducerContext.Provider value={appReducer}> | |
<BrowserRouter> | |
<Routes /> | |
</BrowserRouter> | |
</AppReducerContext.Provider> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment