Skip to content

Instantly share code, notes, and snippets.

@oneybee
Created March 5, 2018 13:29
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 oneybee/0cc6e6311f4ebacc8c1b43840ace75a9 to your computer and use it in GitHub Desktop.
Save oneybee/0cc6e6311f4ebacc8c1b43840ace75a9 to your computer and use it in GitHub Desktop.
reactapp/src/index.js
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