Загрузка видео...

Не удалось загрузить видео

На главную

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

124,069 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 11

Фото профиля George Moller
George Moller2 лет назад

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 ↓

Фото профиля George Moller
George Moller2 лет назад

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 ↓

Фото профиля statuscast
statuscast2 лет назад

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.

Фото профиля Rahi Jamil
Rahi Jamil2 лет назад

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

Фото профиля Bart ⚡
Bart ⚡2 лет назад

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

Фото профиля Chris Staudinger
Chris Staudinger2 лет назад

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

Фото профиля George Moller
George Moller2 лет назад

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

Фото профиля Mithlesh
Mithlesh2 лет назад

That was life saver. Thanks 😊

Фото профиля George Moller
George Moller2 лет назад

Glad you found value in this tweet Mithlesh!

Фото профиля Pavel Romanov
Pavel Romanov2 лет назад

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

Фото профиля George Moller
George Moller2 лет назад

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

Похожие видео