Why Don’t React State Updates Reflect Immediately?

If you think state updates are asynchronous, you are only partially correct

Shubham Khatri
Better Programming
Published in
5 min readApr 23, 2021

--

Photo by Sixteen Miles Out on Unsplash

When working with React a lot of people expect state changes to reflect immediately both in a class and functional component with React hooks.

This, however, is not the case.

--

--

Software Engineer at Meta | Passionate about Javascript, React and Web Development | Active Stackoverflow contributor