React Router Issues

Anyone know what’s up with the latest version of React Router? I’ve been stuck with an issue where it kept showing an error in the React.createClass function pointing to the Router module. I switched back to a previous version and the error disappeared.

Haven’t tried v4 myself, but I noticed in the docs that they changed import and npm package name:

import {
  BrowserRouter as Router,
  Route,
  Link
} from 'react-router-dom'

Also received this in email yesterday:

Thanks a lot for this! I was looking everywhere for the v4 docs but I couldn’t find them. It doesn’t seem to be updated on the github page.

1 Like