© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
E. SarrionMaster React in 5 Dayshttps://doi.org/10.1007/978-1-4842-9855-8_4

4. Day 4: Mastering React Hooks

Eric Sarrion1  
(1)
VIRY CHATILLON, France
 

In this chapter, we will dive deeper into a feature of React: hooks.

In the previous pages, we covered some hooks, such as useState(), useEffect(), and useRef(). We will now recap this knowledge, dive deeper, and also discover new hooks we haven’t used yet.

Hooks are a feature introduced in React 16.8 that allows developers to reuse component logic by separating state and effects logic from display logic. Hooks are functions that allow access to state, effects, and other React features in functional components. ...

Get Master React in 5 Days: Become a React Expert in Under a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.