Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Last active Feb 16, 2019
Embed
What would you like to do?
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