Search posts, tags, users, and pages
Learn how state works in react using the useState Hook
Ume Ngozi Promise
@Promyz
Frontend Developer
I am a Frontend Developer that really loves React.
Markdown supported · ⌘↵ to post
Favourite Jome
Hi Ngozi Promise Ume, great first article and welcome to Hashnode.
This statement you wrote, had me researching: "When you are updating a state, you should think of it as a request rather than a command as it happens Asynchronously."
I didn't know React states updates asynchronously. Then I stumbled upon this article that explained wonderfully: Why Don’t React State Updates Reflect Immediately?
Thanks for sharing!
You're welcome Jome.I am glad it helped
Olajide
This is very Educative, Thank you promise
Favourite Jome
Hi Ngozi Promise Ume, great first article and welcome to Hashnode.
This statement you wrote, had me researching: "When you are updating a state, you should think of it as a request rather than a command as it happens Asynchronously."
I didn't know React states updates asynchronously. Then I stumbled upon this article that explained wonderfully: Why Don’t React State Updates Reflect Immediately?
Thanks for sharing!