Linked to from reactjs/react-router-redux#244 and answered on SO.
npm install
npm start
- Open http://localhost:8080
- Open browser console
- Click Link 1 and then Link 2
Update
I got this working by switching Page.js to dispatch its actions from componentDidUpdate
instead of componentWillReceiveProps
. See this revision for the full diff.
The current code in the gist still errors, but if you swap out componentWillReceiveProps
for componentDidUpdate
it works.
Error This should cause an error like this to appear in the console:
Uncaught Invariant Violation: findComponentRoot(..., .0.4.3): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ``.