Managing React State: 10 Years of Lessons Learned - Cory House, React Day Berlin 2023
Vložit
- čas přidán 19. 12. 2023
- React Day Berlin 2023 #reactdayberlin #GitNation
Website - reactday.berlin/
Follow the link to watch the full version of all the conference talks, QnA’s with speakers and hands-on workshop recordings → portal.gitnation.org/events/r...
Talk: Managing React State: 10 Years of Lessons Learned
Managing React state is hard. Why? Because there are so many options to consider! Local state, reducers, custom hooks, context, and over a dozen third-party libraries. In this session, we’ll explore the lessons I’ve learned from managing complex state in React over the last seven years. I’ll share my strategy for categorizing React state including local, server, global, derived and many more. After this session, you’ll understand how to identify different types of state, where to declare state, and how to choose between these different options.
This event would not take place without the support of sponsors:
🥇 Gold Sponsors
Storyblok → www.storyblok.com/
Handsontable → handsontable.com/?...
Bonial → www.bonial.com/de/
Ably → ably.com/
Auth0 by Okta → auth0.com/
Focus Reactive → focusreactive.com/
🥈 Silver Sponsors
Sentry → sentry.io/welcome/
Replay → www.replay.io/ - Věda a technologie
wonderful lesson , ThanQ
Great content bro 🎉
Amazing content, Thanks
Thanks
For forms, what is the best solution , using useState or useRef ?
Never use useRef to store states. ref is for a different type of problems.
Instead use useState or useReducer, if you want to avoid all the managing of the state of the form, you can use libraries like formik or react hook forms
⁰ lonkkkkk😊😊