React Simplified Course: https://reactsimplified.com/?utm_source=youtube&utm_medium=video-description&utm_campaign=video-id-M3mGY0pgFk0
React recently announced a new experimental hook that makes working with optimistic updates so much easier. This saves so much boilerplate code and gives your users a much better experience.
Materials/References:
React Simplified Course: https://reactsimplified.com/?utm_source=youtube&utm_medium=video-description&utm_campaign=video-id-M3mGY0pgFk0
Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:34 - What are optimistic updates
01:13 - Why optimistic updates are hard
02:05 - useOptimistic hook basics
06:38 - useOptimistic hook advanced
#ReactJS #WDS #useOptimistic