7 ms·
This is also a much easier to read way of doing it. For others' context, it's something like this: setFoo((f) => f + 1);
by chadlavi 4y ago
This is also a much easier to read way of doing it.
For others' context, it's something like this:
setFoo((f) => f + 1);