React hooks are like Anchor ( same as what ships drop in the ocean to attach the ship and ocean floor) between React state (ocean floor) and life-cycle features ( ship ) Only work with function based components, not with class based components. Can't nest hooks inside loops, conditions or nested functions.

5m read timeFrom dev.to
Post cover image
Table of contents
What are HooksuseState()useEffect()useRefuseReduceruseContextuseMemouseCallback
1 Comment

Sort: