Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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

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


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

Search: