Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import { BrowserRouter } from 'react-router-dom'
  2. import history from './utilities/history'
  3.  
  4. ReactDOM.render(
  5. <BrowserRouter history={history}>
  6. <App />
  7. </BrowserRouter>,
  8. document.getElementById('root')
  9. )
  10.  
  11. import { createBrowserHistory } from 'history'
  12.  
  13. export default createBrowserHistory()
  14.  
  15. @types/react-router-dom": "^4.3.4",
  16. react-router-dom": "^5.0.1",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement