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

Agree, for modern React with hooks. A React component looks like a normal function, only you can't call it. Only React can call it, in order to set up its hooks state.


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

Search: