Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

❌ Avoid using useState for more complex state management ✅ Instead use useReducer ↓

124,069 Aufrufe • vor 2 Jahren •via X (Twitter)

11 Kommentare

Profilbild von George Moller
George Mollervor 2 Jahren

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

Profilbild von George Moller
George Mollervor 2 Jahren

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics just like this one. Check them out ↓

Profilbild von statuscast
statuscastvor 2 Jahren

Help your IT team cut through 'Are you down?' clutter with StatusCast’s Audience Specific Status Pages. Tailor your status page to each user's role and needs for effective incident communication.

Profilbild von Rahi Jamil
Rahi Jamilvor 2 Jahren

Totally agree! useReducer simplifies state transitions and makes code more maintainable. 🎯 #ReactJS #useState #useReducer

Profilbild von Bart ⚡
Bart ⚡vor 2 Jahren

Honestly, I always think that when your state is too complex for useState then you did something wrong.

Profilbild von Chris Staudinger
Chris Staudingervor 2 Jahren

I'm loving this new visual style George! 🤩 And on point React tips as always! 😀

Profilbild von George Moller
George Mollervor 2 Jahren

Always happy that you like the content Chris! Big fan of your content too 💪

Profilbild von Mithlesh
Mithleshvor 2 Jahren

That was life saver. Thanks 😊

Profilbild von George Moller
George Mollervor 2 Jahren

Glad you found value in this tweet Mithlesh!

Profilbild von Pavel Romanov
Pavel Romanovvor 2 Jahren

It is exactly what I noticed today on a code review😄 Besides the mentioned benefits, we have cleaner components in general since all state-related logic moved out of the component

Profilbild von George Moller
George Mollervor 2 Jahren

Yes, useReducer has a better api than useState. Having said that, I still find use cases for useState.

Ähnliche Videos