COMPRESSEDfm cover image

47 | Brain Dump on React Hooks

COMPRESSEDfm

00:00

React - Using Reduct and Redux

Use effect is a function that will be called in your class component when the component is about to go away. The next hook we have is use reducer. And i think the most direct comparison to think about with used reducer is it basily follows the same structure as reduct. It allows you to share and maintain state across all your different components. That changes a little bit with a context api that we'll talk about here in a second, but it's pretty opinionated, i would say.

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