I go over an issue you may face when using React hooks that has to do with closures.
Code: https://codesandbox.io/s/angry-bush-4165d
Links from video:https://reactjs.org/docs/hooks-faq.html#why-am-i-seeing-stale-props-or-state-inside-my-function
----
If you like cooking, checkout my side project: https://www.mysaffronapp.com/
----
Join the Discord: https://discord.gg/Vehs99V
----
Patreon: https://www.patreon.com/benawad
----
Follow Me Online Here:
Twitch: https://www.twitch.tv/benawad
GitHub: https://github.com/benawad
LinkedIn: https://www.linkedin.com/in/benawad/
Instagram: http://instagram.com/benawad97
Twitter: https://twitter.com/benawad
#benawad
TikTok: https://www.tiktok.com/@benawad
----
Follow me online: https://voidpet.com/benawad
#benawad