Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Last active February 16, 2019 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nightspirit/83b50d1b9f7b91cdce44044562034e40 to your computer and use it in GitHub Desktop.
Save nightspirit/83b50d1b9f7b91cdce44044562034e40 to your computer and use it in GitHub Desktop.
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