Created
August 27, 2020 16:30
-
-
Save Qs-F/ac77628f5a253cbe2ac8915db3853214 to your computer and use it in GitHub Desktop.
react-router
This file contains hidden or 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
/** @jsx jsx */ | |
import { jsx } from '@emotion/core' | |
import { BrowserRouter, Route, Switch } from 'react-router-dom' | |
import { render } from 'react-dom' | |
import { App } from './app' | |
render( | |
<BrowserRouter> | |
<Switch> | |
<Route exact path="/"> | |
<App /> | |
</Route> | |
</Switch> | |
</BrowserRouter>, | |
document.getElementById('app') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment