Comment

Comment by wruza

Is that a high-quality article? It feels like yet another clueless hype with arguments stretched to make a point.

there’s no need to allocate space to a class instance, then call a render() function, you just call the function

That module exports a class, not an instance (not that it was significant). React still allocates vdom nodes at mount, by using sort of new Component for function components and new Hello for class-based ones. It has to store useFoo()-states somewhere anyway.

setName(response.data,name)

That ‘name’ symbol was never defined. Or is it response.data.name?

And the graph shows the same growth rate way before ‘hooks’ were released (2017), which makes “With hooks … has grown” a little non-sequitur. See also the same graph with react-hooks: https://insights.stackoverflow.com/trends?tags=jquery%2Cangu...

parent wruza 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton