DEV Community

Cover image for React Interview Questions | React Closure in depth
Asif karim
Asif karim

Posted on • Edited on

React Interview Questions | React Closure in depth

Hey Developers! I hope you're doing great.

In my React journey i have seen developers getting stucked understanding react state behaviour with closures.As they are not able to understand totally why they can't access updated values even after updating it.

React state behaviour with closures - My explanation video

  • Why We dont have access to updated state inside SetInterval/Setimeout

  • What's the difference between Rendering and Mounting

  • Why Keys are so important

I have created this video where i tried to discuss about the concepts of state and closures with Intervals in React by creating text-typing animation effect.

Do check it out and please share your opinion and thoughts on it.

Hope you have a wonderful day ahead :)

Top comments (0)