How it works...

As you can see with all those examples, React lifecycle methods are used to handle different scenarios in our application. In Chapter 5, Mastering Redux, we are going to see how to implement Redux and how the lifecycle methods can work with Redux states.

Get React Cookbook 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.