Don't over useState
Common pitfalls and best practices for using React's useState hook, focusing on avoiding unnecessary state for derived values.
Common pitfalls and best practices for using React's useState hook, focusing on avoiding unnecessary state for derived values.
Explains the advanced React useState features: lazy initialization for expensive state and function updates for reliable state changes.
Explains how to implement computed properties (derived state) in React using useState and sorting examples.
A guide on how to derive state from props in React function components, including code examples for initializing and updating state.
A tutorial on updating items in a React list using state management, including useState and useReducer hooks.
A tutorial on adding items to a list in React using the useState Hook and controlled input fields.
A tutorial on removing items from a list in React using state management and the filter method.
An in-depth look at how React Hooks like useState and useEffect work by building a simplified React engine from scratch.
A comparison of React's useState and useReducer hooks, explaining their trade-offs and when to use each through practical examples.
A comprehensive guide to understanding and managing state in React, from local component state with hooks to global state solutions.
Explains the benefits of deriving state in React instead of synchronizing multiple state variables, using a tic-tac-toe game as an example.
A technical guide explaining how to re-implement the React useState hook using the useReducer hook for educational purposes.
A step-by-step tutorial on using the useState hook for state management in React function components.
A guide explaining when to use the useState vs useReducer hooks for state management in React applications.
A tutorial on using React's useState, useReducer, and useContext hooks for state management, from simple to complex scenarios.
A tutorial showing how to migrate React Class Components to Function Components using React Hooks for state and side-effects.
Explains the rationale behind React Hooks' reliance on call order and how it enables features like multiple state variables.
Explains the array destructuring syntax used in React's useState Hook, showing how to understand and 'de-sugar' the syntax.