I can't figure out how to use any relatively recent (react 13+) version of React-router . The example on the current README suggests integrating it by rendering Router directly (with routes defined via child Route elements). Another official overview doc seems to advise using Router.run. The react-router examples use the former. None work for me: I get different errors depending on use:
- When attempting to use react-router by rendering the
Routerelement directly I get "Uncaught Error: Invariant Violation: A needs a valid Location” - When attempting to use react-router by running
Router.runwith routes, I get “Uncaught TypeError: Cannot read property 'toUpperCase' of null”