Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Update Tutorials with 2.0.0 release changes #314

Open
ChrisCates opened this issue Apr 13, 2017 · 0 comments
Open

Update Tutorials with 2.0.0 release changes #314

ChrisCates opened this issue Apr 13, 2017 · 0 comments

Comments

@ChrisCates
Copy link

Should reflect something like this. Since NPM Modules have been separated:

import React from 'react';
import { Router, Route, useRouterHistory } from 'react-router';
import { createMemoryHistory } from 'history';
import { render } from 'react-dom';
import { App } from './App';

const appHistory = createMemoryHistory();

render(
  (
    <Router history={appHistory}>
      <Route path="/" component={App}/>
    </Router>
  ),
  document.getElementById('root')
);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant