Version 4 of React Router changed several things. They made separate top level router elements for the different history types. If you're using version 4 you should be able to replace with or .
For more detail, see https://reacttraining.com/react-router/web/guides