Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

React is Lying to You ๐Ÿ˜ณ useState Interview Question

Video information, playback and saved actions.

React is Lying to You ๐Ÿ˜ณ useState Interview Question

Description: React is lying to you, and console.log proves it! ๐Ÿ˜ณ

You update the count three times in one click, so why does the button show 1 instead of 3? And why does the console still print 0?

In this short you'll learn:
โœ… Why React state is a snapshot
โœ… Why ...ย Read more
ย ย ย ย ย ย 
Videos related to "React is Lying to You ๐Ÿ˜ณ useState Interview Question"