Re:React Won by Default – and It's Killing Front End Innovation
by thomasfromcdnjs on Monday September 15, 2025 @08:59PM
(#45256801)
They kind of are not though, you can't call them out of order and other things which is checked at runtime by the React "engine" and will stop script execution. If they were regular functions you could call them anytime.
[ Parent
| on HN ]
Re:React Won by Default – and It's Killing Front End Innovation
by b_e_n_t_o_n on Monday September 15, 2025 @10:14PM
(#45257276)
Many "regular" functions are context dependent.
Re:React Won by Default – and It's Killing Front End Innovation
by DangitBobby on Monday September 15, 2025 @11:18PM
(#45257679)
They are context dependent, must execute in the same order every time, and must be called every time the component re-renders (i.e., they do not support conditional calls). They have enough gremlin rules that calling them "just functions" is unhelpful for reasoning about using them.