Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created September 16, 2018 14:09
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 productioncoder/af14e3bc823201306e26a5e00fac7860 to your computer and use it in GitHub Desktop.
Save productioncoder/af14e3bc823201306e26a5e00fac7860 to your computer and use it in GitHub Desktop.
Wrapping our app inside a <BrowserRouter> component
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'semantic-ui-css/semantic.min.css';
import {BrowserRouter} from 'react-router-dom';
ReactDOM.render(
<BrowserRouter>
<App/>
</BrowserRouter>, document.getElementById('root'));
registerServiceWorker();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment