Hacker News new | past | comments | ask | show | jobs | submit login

This is also a much easier to read way of doing it.

For others' context, it's something like this:

  setFoo((f) => f + 1);



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: