Hacker News new | ask | show | jobs
by chadlavi 1191 days 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);