JavaScript Jabber cover image

React Component and State Management - JSJ 526

JavaScript Jabber

00:00

Using Hooks in a Component Function Is Crucial

Hooks need to be listed at the top of the component function before the implementation. You must never use you state from within conditional blocks or loops. If you put it in a loop, whell you'll be getting a new state, value and cetter on each loop iteration. And that's because of the magic side channel state that it carries.

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