Marc Brehmer
Rethinking React State Management: The Power of Built-In Solutions
#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.
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
TypeScript
React
+3
Matching moments
04:56 MIN
Recreating React components using AI and dev tools
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
05:28 MIN
The origin story of the Polypane developer browser
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
Featured Partners
Related Videos
State management in a world of hooks
Adam Klein
Dos and don'ts with react hooks. An opinionated approach
Daniel Espino Garcia
Bringing back reactivity in "reactive" frontend
Michał Moroz
What the heck do "declarative" and "reactive" actually mean?
André Kovac
Challenges of building React and React Native apps
Milica Aleksic & Stefan Nikolic
Building Better Apps with React Native
Marc Rousavy
Keith Cirkle of GitHub on React Fatigue
Keith Cirkle
The Journey of a Pixel in a React Application
Shem Magnezi
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

Twin.Link GmbH
Osnabrück, Germany
Intermediate
Senior
React
TypeScript


Aufmaster GmbH
Frankfurt am Main, Germany
Remote
€50-62K
API
NoSQL
React
+8


Kummer Consulting
Berlin, Germany
API
Scrum
React
Angular
TypeScript
+1


