Have you ever found yourself trying to update state in a callback only to realize the value stays stale? If so, you're yet another victim of this React useState nonsense. Let me show you how to work around it.
Tags: #react #javascript #programming #coding #shorts #short
💻 What I used to make this video:
• Screen recording software: https://screen.studio/@4v4NJ
• Camera: https://amzn.to/4hbA1S9
• Microphone: https://amzn.to/3YzWi4T
• Keyboard: https://amzn.to/3NDeeoE
• Mouse: https://amzn.to/4fc3KIM
• Theme: https://www.vscolors.com/themes/d1818...
👁️ Follow me:
• Newsletter: https://seescottdev.substack.com/subs...
• Blog: https://seescott.dev/
• Instagram: / seescottdev
• Twitter: https://x.com/seescottdev/
⚠️ Disclaimer: Some links are affiliate links. If you buy something, I may make a small commission at no additional cost to you. As an Amazon Associate, I earn from qualifying purchases.
コメント