Learn the useOptimistic Hook in 19 minutes (Next.js 13 For Beginners)

Sonny Sangha โ€ข July 20, 2023
Video Thumbnail
Sonny Sangha Logo

Sonny Sangha

View Channel

About

I'm Sonny. ๐Ÿ’ฏ You might also know me as PAPA React! I've been coding for over 10 years now. As a Full Stack developer I've worked both with startups and large corporations to help build & scale their companies. Along the journey I realised my passion existed in helping others excel and pursue their dreams as upcoming developers and if thatโ€™s not enough I have cloned most of the applications you have used in your life! ๐ŸŒŸ ๐Ÿšจ Join the worldโ€™s BEST developer community โ€œZero to Full Stack Heroโ€ NOW: https://www.papareact.com/course

Video Description

๐Ÿšจ Join my course Zero to Full Stack Hero: https://www.papareact.com/course The useOptimistic hook provides a way to implement OPTIMISTIC updates. These Optimistic updates enhance the user experience by making the app appear more responsive to the user by displaying instant results on the front end. ๐Ÿ”ด LOOKING FOR THE CODE FROM THE BUILDS? ๐Ÿ› ๏ธ https://links.papareact.com/github ๐Ÿ“ฉ WANT TO LISTEN TO THE EXCLUSIVE PAPAFAM PLAYLIST? Sign up for the PAPAFAM Newsletter here ๐Ÿ‘‰ https://links.papareact.com/newsletter ๐Ÿ‘‡๐ŸปFOLLOW ME HERE: Instagram: https://links.papareact.com/instagram Facebook: https://links.papareact.com/facebook LinkedIn: https://links.papareact.com/linkedin Twitter: https://links.papareact.com/twitter Discord: https://links.papareact.com/discord ๐Ÿ’ฐ WANT TO SUPPORT THE CHANNEL? Donate here: https://links.papareact.com/donate Grab some PAPA Merch: https://links.papareact.com/merch ๐Ÿ• TIMESTAMPS: 00:00 Introduction 00:14 Explaining Optimistic Updates 00:48 useOptimistic Demo 03:25 Explaining the useOptimistic Hook Demo Integration 04:41 Explaining the Backend Integration 05:52 Building the Frontend for the useOptimistic Demo 07:11 Implementing a Simple Counter 09:34 Implementing the useOptimistic Hook 10:38 Simple Counter vs Optimistic Counter 11:24 Building and Explaining the Optimistic Counter Component 16:12 useOptimistic Demo & Explanation 17:58 Bonus Tips & Tricks 19:06 Outro Letโ€™s get it PAPAFAM ๐Ÿ”ฅ. #nextjs #reactjs #serveractions #tutorial #javascript #beginner #webdevelopment #tailwindcss

You May Also Like