2 ms·
Correct me if I am wrong but wouldn’t the best solution to the “Accessing state after changing it” problem be to pass a callback as the 2nd arg to the “setState
by makingstuffs 4y ago
Correct me if I am wrong but wouldn’t the best solution to the “Accessing state after changing it” problem be to pass a callback as the 2nd arg to the “setState” function?
https://beta.reactjs.org/reference/react/Component#setstate https://beta.reactjs.org/reference/react/Component#setstate