13 likes
2 comments
·14 hours ago
14 hours ago
Nice wrap up for react useState! In my project, if I need update a state synchronized with its old value, I pass directly reducer function to setState function; If I need to use multiple state I’ll use multiple useState.
·