Appendix C. Additional React Router 4 use cases

This appendix covers

  • Handling third-party libraries such as an analytics module in React Router 4
  • Adding routes dynamically at runtime
  • Code splitting with webpack and React Router 4

Chapters 10 and 11 show you how to do several things that affect the way the React Router code and the rest of the app work together. This appendix goes over several of those examples with React Router 4.

All the examples in this appendix live in the react-router-4 branch (git checkout react-router-4) of the main example repo, http://mng.bz/S3N0. The code in this branch is also updated so you can see a complete example of the way React Router 4 works with the final version of the code as it exists at the end of ...

Get Isomorphic Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.