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

Nope, it's a normal function that updates some variables in the React module then returns two values. There's a little bit of magic going on, with how it knows which component it's in, but that's happening outside of the individual hooks.


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

Search: