Skip to content

Instantly share code, notes, and snippets.

@isaidspaghetti
Created August 19, 2020 23:39
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 isaidspaghetti/3fd430fe48217164c96ebc48c4b483c9 to your computer and use it in GitHub Desktop.
Save isaidspaghetti/3fd430fe48217164c96ebc48c4b483c9 to your computer and use it in GitHub Desktop.
//frontend/src/index.js:9
ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<Switch>
<Route path="/" exact={true}>
<Customer />
</Route>
<Route path="/admin" exact={true}>
<Admin />
</Route>
</Switch>
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment