Skip to content

Upgrade react router - #3

Closed
moshie wants to merge 3 commits into
masterfrom
upgrade-react-router
Closed

Upgrade react router#3
moshie wants to merge 3 commits into
masterfrom
upgrade-react-router

Conversation

@moshie

@moshie moshie commented Jul 20, 2017

Copy link
Copy Markdown

No description provided.

Refactor server rendering with `react-router` <StaticRouter>
and update client to use `react-router-dom` <BrowserRouter> and
other components.

Server rendering documentation:
https://reacttraining.com/react-router/web/guides/server-rendering
Use <StaticRouter> context object to deal with server redirect
or 404 response.

Create new catch-all (404) route that renders <NotFound>.
react-router@4.1 causes the app to break with the error:
```
Uncaught Error: Calling PropTypes validators directly is not
supported by the 'prop-types' package.
Use 'PropTypes.checkPropTypes()' to call them.
Read more at http://fb.me/use-check-prop-types
```
@moshie moshie closed this Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants