Domanda di colloquio di Locana

Can you describe a hook in ReactJS?

Risposta di colloquio

Anonimo

3 apr 2025

Hooks are functions that let you interact with React state and lifecycle features from functional components. They allow the use of state and other React features without writing class components. Some examples are the useEffect and useState hooks.