Adam Klein
State management in a world of hooks
#1about 3 minutes
The challenge of managing local versus global state
Using hooks for local state and libraries like Redux for global state creates two mental models and makes refactoring difficult.
#2about 1 minute
Aligning local and global state management patterns
One solution is to use global state patterns, like `useReducer`, for local component state to create a consistent development experience.
#3about 4 minutes
How hooks enable superior code reusability
Hooks' reliance on call order and co-location makes it simple to extract logic into custom hooks, unlike refactoring traditional reducers.
#4about 2 minutes
Using the React Context API for shared state
The React Context API provides a native way to manage shared state using hooks, as seen in Facebook's own UI.
#5about 2 minutes
Understanding the performance drawbacks of React Context
In large applications, Context can lead to deep provider nesting and performance issues from unnecessary re-renders across the component tree.
#6about 2 minutes
The future of React Context with selectors
A proposed RFC for `useContext` aims to solve performance problems by adding a selector argument to prevent components from re-rendering unnecessarily.
#7about 4 minutes
Designing an ideal hook-based state management API
The evolution of a new state management API explored initial attempts using string keys and custom hook implementations before finding a better solution.
#8about 3 minutes
Introducing the Reusable library and its architecture
The Reusable library uses a `createStore` function to run native hooks in a dummy component, enabling direct subscriptions without Context.
#9about 4 minutes
Live demo of refactoring local state to a shared store
A live demonstration shows how to easily convert a component's local state into a global, shared store using the Reusable library.
#10about 2 minutes
Live demo of using selectors and composing stores
The demo continues by implementing selectors to optimize re-renders and shows how one store can seamlessly use data from another.
#11about 1 minute
Final thoughts on choosing the right development tools
A concluding thought emphasizes choosing tools that fit your team's needs, as today's hottest trend often becomes tomorrow's legacy code.
Related jobs
Jobs that call for the skills explored in this talk.
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
TypeScript
React
+3
Matching moments
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
04:02 MIN
How a broken frontend culture impacts the web
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
14:14 MIN
Scripting presentations and demos in VS Code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
03:05 MIN
Building collaborative design tools and the neo-brutalism trend
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:34 MIN
The business case for sustainable high performance
Sustainable High Performance: Build It or Pay the Price
Featured Partners
Related Videos
Rethinking React State Management: The Power of Built-In Solutions
Marc Brehmer
Dos and don'ts with react hooks. An opinionated approach
Daniel Espino Garcia
Building Interactive Async UI with React 19 and Ariakit
Aurora Scharff
React and the power of visualisation
Daisy Muyldermans
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
Snappy UI needs no Single-Page Application
Clemens Helm
Bringing back reactivity in "reactive" frontend
Michał Moroz
Challenges of building React and React Native apps
Milica Aleksic & Stefan Nikolic
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript






Aufmaster GmbH
Remote
€50-62K
API
NoSQL
React
+8

Launchly Pro
Remote
£33K
API
REST
React
+3

Couplink Group AG
API
React
Node.js
Machine Learning
Microsoft SQL Server