4 ms·
That's not why you have to do it, it's because the state can be updated asynchronously. It's only applicable when you try to update the state based on previous
by jontro 8y ago
That's not why you have to do it, it's because the state can be updated asynchronously. It's only applicable when you try to update the state based on previous state or props values.