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

> <script> blocks are not written in JavaScript, but rather a language with the same general syntax but different semantics

One could argue that React's hooks are the same: they look like JS but change JS semantics.

However, your point is still valid.



Nah, React hooks are still JavaScript—they’re library functionality, executed directly as JavaScript.




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

Search: