Rethinking React State Management: The Power of Built-In Solutions
Are external state libraries slowing you down? See how to build a powerful and lightweight state management system using only native React features.
#1about 4 minutes
What is state management and why is it important
State management is crucial for application functionality and user experience because it ensures data consistency and improves performance.
#2about 3 minutes
Managing local state and the problem of prop drilling
Using the useState hook for local component state can lead to prop drilling, where state is passed down through many layers of components.
#3about 4 minutes
Using an external library like Recoil for global state
External libraries like Recoil offer a global state solution using atoms and selectors to avoid prop drilling and manage shared state.
#4about 2 minutes
Implementing global state with React's Context API
React's built-in Context API provides a way to create a global state without external dependencies, avoiding prop drilling.
#5about 2 minutes
Challenges of Context API and Recoil for state management
Both the Context API and Recoil can introduce performance issues, complexity like 'context hell', and the risk of overusing global state.
#6about 2 minutes
Simplifying state logic with state transformers
State transformers are pure functions that encapsulate state modification logic, making updates more maintainable, testable, and reusable.
#7about 5 minutes
Example: Combining Context, useReducer, and transformers
A practical example shows how to manage user authentication by combining the Context API for global access, useReducer for predictable updates, and state transformers for logic.
#8about 1 minute
Conclusion: Benefits of using React's built-in tools
Using React's native tools for state management reduces dependencies, improves performance with a smaller bundle size, and offers flexibility.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
02:38 MIN
The challenge of managing local versus global state
State management in a world of hooks
02:03 MIN
Using the React Context API for shared state
State management in a world of hooks
02:13 MIN
How popular JavaScript libraries implement reactivity
Bringing back reactivity in "reactive" frontend
06:36 MIN
Architecting the solution with the React Context API
Build UIs that learn - Discover the powerful combination of UI and AI
02:18 MIN
Exploring modern state management patterns beyond frameworks
Client-Side State Management Reimagined – Think Outside the Box
04:37 MIN
Explaining the core concepts of Redux state management
Hello generics, goodbye boilerplate!
07:48 MIN
Navigating state management patterns and their trade-offs
Lessons learned from building a thriving Vue.js SaaS application
Top 5 React Form Libraries for DevelopersReact is still one of the most popular web frameworks in the world, and even if promising JavaScript building blocks like Svelte enter the contest occasionally, React gets credit among frontend developers for how easy it is to develop user interfaces...
Chris Heilmann
Micro Components - a different approach to a simpler component-based webThere has been a lot of heated discussion lately in the web community about component based development. One side argued that Web Components are a standard we should follow whereas others complained that they still lag behind in what frameworks offer...
Ashutosh Mishra
16 Best Free React UI Libraries in 2025Web development is moving incredibly fast. New features pop up all the time, but there's one constant issue that keeps coming up: keeping your app's interface looking attractive and impressive. While new features are born and killed as the project gr...
Daniel Cranney
How Microsoft worked around a Git limitation to shrink a repository by 94%Imagine that you are responsible for a Git repository with 1000 users, and 20 million lines of code. You struggle to keep up with constant pull requests but the biggest problem is that the Git file size of the repository is mushrooming to over 170GB ...
From learning to earning
Jobs that call for the skills explored in this talk.