News for hackers. Stuff that matters.
Re:React's UseRef Deep Dive by valenterry on Thursday December 17, 2020 @09:02PM (#25462969)
Apologies. When I said "functions" I meant "pure functions" in the sense that you can call them anytime and don't need to consider any special rules. An example would be `Math.pow`.

Hooks are not _just_ functions, they are special functions where that (by the documentation) should not be called inside loops, conditions, or nested functions. These are severe restrictions compared to the "normal/pure" functions that I meant.

There are no comments on this comment yet.