Category React

All Categories

How to use the React useState hook

September 23, 202212 min readReact

Learn how to manage local state in React components using the useState hook.

The React useState hook and lazy initialization

September 18, 20223 min readReact

Learn how to use an initializer function with useState for expensive state initialization.

Hooks versus container components in React

September 15, 20223 min readReact

Learn how hooks can be used to either replace container components or to live alongside them in a combined approach.

How to use the React useReducer hook

March 02, 20226 min readReact

Learn how to manage more complex state in React components using the useReducer hook.

Iterating and rendering data in React components

January 16, 20223 min readReact

Discover how to iterate and render data with React. Become a data looping expert with React components.

How to use the React useEffect hook

January 08, 20229 min readReact

Learn how to perform side-effects in components with the React useEffect hook.

How to use the React useRef hook

January 04, 20223 min readReact

Learn how to use the React useRef hook to access DOM elements and manage state.

Using the React useState hook for forms

January 04, 20223 min readReact

Learn how to use the React useState hook to manage form data.

function versus const for React components

January 02, 20224 min readReact

Learn the difference between declaring React components with either the function keyword or the const keyword and an arrow function.