JavaScript Jabber cover image

React Component and State Management - JSJ 526

JavaScript Jabber

00:00

Custom Hooks - What Are They?

react had a lot of they they they really, this is something that the react creators really thought long and hard about. They had at the beginning, they had something called mixings, and then they had higher order components. These are kind of being deprecated in favor of custom hooks. So what are custom hooks? Basically, you take a portion of that function of that component function that uses hooks and you break it up to a separate function that you call from your component function. That's essentially it.

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