How to useMemo in React
A guide explaining how to use React's useMemo Hook to optimize performance by memoizing expensive computations in function components.
A guide explaining how to use React's useMemo Hook to optimize performance by memoizing expensive computations in function components.
A guide explaining React's useCallback Hook for optimizing function components, including examples and comparisons to useMemo and memo.
Announcing use-sound, a React Hook for adding sound effects to web applications, with tips for tasteful implementation.
A guide on testing custom React hooks, using a useUndo hook as a practical example to demonstrate effective testing strategies.
A step-by-step tutorial on creating a React Range Component using Hooks, Function Components, and styled-components.
A step-by-step tutorial on creating a React Slider component using React Hooks, Styled Components, and mouse event handlers.
A tutorial on using Jest snapshot testing to capture and compare the output of a React component before and after a state change.
A guide to common mistakes when using React Hooks and practical advice on how to avoid them for better code.
The article argues against writing many small, single-assertion tests for React components, advocating for fewer, more comprehensive tests.
A tutorial on setting up and using Jest to test React components, including assertions and snapshot testing.
A tutorial on integrating Web Components into React, covering props, events, and using a custom hook for seamless integration.
Explains a React optimization trick to prevent unnecessary re-renders by passing stable element references.
A tutorial on implementing a global state container in React using useReducer and useContext hooks, mimicking Redux functionality.
Compares React's useReducer Hook with Redux for state management, explaining their differences and when to use each.
A step-by-step tutorial on using the useReducer hook in React for state management, including a practical example.
A guide explaining when to use the useState vs useReducer hooks for state management in React applications.
A tutorial showing how to migrate React Class Components to Function Components using React Hooks for state and side-effects.
A React team member shares personal strategies for coping with stress and feedback after major project releases like React Hooks.
A guide to creating a custom React Hook, useInterval, to make setInterval work declaratively with React Hooks.
Explains the array destructuring syntax used in React's useState Hook, showing how to understand and 'de-sugar' the syntax.