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:13PM
(#45257274)
Many functions can only be called in a certain context. Calling them "not functions" is misleading imo because it implies those functions are compiled out or something, like `$state()` in Svelte.
[ Parent
| on HN ]
Re:React Won by Default – and It's Killing Front End Innovation
by slmjkdbtl on Monday September 15, 2025 @10:23PM
(#45257348)
Yeah they themselves are functions but how they're called are managed by a complicated system, I think treating them as a separate new concept is less misleading than calling them plain functions
Re:React Won by Default – and It's Killing Front End Innovation
by b_e_n_t_o_n on Monday September 15, 2025 @11:46PM
(#45257835)
Well they aren't plain functions, they're like lifecycle methods for the component with an implicit `this`. Perhaps that's how they should be described.