Cory House
Cory is founder of reactjsconsulting, where he helps companies transition to React. He is a Pluralsight author, 9 time Microsoft MVP, and international speaker. He has trained over 10,000 software developers at conferences and businesses worldwide. Cory has authored over a dozen courses on JavaScript, React, C#, automated testing, and web development on Pluralsight. He shares software development tips daily on Twitter as @housecor.
Managing React State: 10 Years of Lessons LearnedWatch video: Managing React State: 10 Years of Lessons Learned
React Day Berlin 2023
16 min
Managing React State: 10 Years of Lessons Learned
Top ContentManaging React state is hard. Why? Because there are so many options to consider! Local state, reducers, custom hooks, context, and over a dozen third-party libraries. In this session, we’ll explore the lessons I’ve learned from managing complex state in React over the last seven years. I’ll share my strategy for categorizing React state including local, server, global, derived and many more. After this session, you’ll understand how to identify different types of state, where to declare state, and how to choose between these different options.