Timeline for answer to The useState set method is not reflecting a change immediately by Nikita Malyschkin
Current License: CC BY-SA 4.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 19, 2022 at 8:32 | comment | added | ADITYA AHLAWAT | Good try though | |
| Mar 25, 2021 at 5:16 | comment | added | vikramvi | Not sure why this answer is down voted heavily, it goes tell how to get "expected" console.log value by putting it outside useState function. Simple and sweet, if somebody wants to know why it is happening like that can refer to above detailed clarifications | |
| May 18, 2020 at 6:49 | history | answered | Nikita Malyschkin | CC BY-SA 4.0 |