JavaScript Jabber cover image

React Component and State Management - JSJ 526

JavaScript Jabber

00:00

Using Custom Hooks to Reuse State Management Logic

Hooks can only be used within component functions. You can't just create a hook in the global name space or some function that has nothing to do with react. And you know, you can't call hook when you're not inside react, for example. But we will see that pulling the hooks out of the component functions themselves and into functions that are invoked by the component functions can actually be a very power fu mechanism for a reusing state management logic.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app