3 ms·
> <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
by dmitriid 5y ago
> <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.
- chrismorgan 5y agoNah, React hooks are still JavaScript—they’re library functionality, executed directly as JavaScript.