Created
March 5, 2018 13:29
-
-
Save oneybee/0cc6e6311f4ebacc8c1b43840ace75a9 to your computer and use it in GitHub Desktop.
reactapp/src/index.js
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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { BrowserRouter } from 'react-router-dom'; | |
import App from './components/App'; | |
ReactDOM.render( | |
<BrowserRouter basename="/reactapp"> | |
<App /> | |
</BrowserRouter>, | |
document.getElementById('root'), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment