Skip to Main Content
Isomorphic Web Applications
book

Isomorphic Web Applications

by Elyse Gordon
June 2018
Intermediate to advanced content levelIntermediate to advanced
320 pages
10h 11m
English
Manning Publications
Content preview from Isomorphic Web Applications

Appendix A. React Router 4 basics

This appendix covers

  • Using declarative routing in your components
  • Using configurable routing to create a single source of truth
  • Moving code from React Router 3 lifecycle events into a higher-order component
  • Prefetching data in the browser by using a higher-order component

React Router 4 represents a big change in thinking from React Router 3. It moves from a standard static router implementation in which you define your routes in a single file to a dynamic implementation in which routes are created within React components. This also allows you to move most lifecycle logic out of React Router lifecycle methods and into React’s lifecycle. Let’s start by reviewing how you switch your components over to use React ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Isomorphic JavaScript Apps

Building Isomorphic JavaScript Apps

Jason Strimpel, Maxime Najim
Pro React 16

Pro React 16

Adam Freeman

Publisher Resources

ISBN: 9781617294396Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link