And it happened at the same that that learning React for 6 months was enough to get a job so very fast a good % of React developers were already using hooks (and actually never used React Components)
> *Treating one big function handling 10 different scenarios is not what I would call functional components, much less simpler in nature.
That’s an antipattern. Like the 200 lines function in imperative or the god class in OOP.
Your components should be small and composable. Before directly using the standard hooks in the components, you should think first if it would not better to write a custom one. Scenarios should be handled by custom hooks and component should just get data from them. If you cannot test scenarios apart from your views and vice-versa, you’re doing it wrong
Svelte promises to be better than React but in the end it is not - and I hate React. React is a world on its own inside the frontend and Svelte did exactly the same, it is just different unnecessary complexity. And they even change everything every couple of years just like React.
Don't kid yourself, the US is going to war against anyone that tries to regulate big tech as we are seeing with the US government going against Brazil and the Pix payment system
To do what? Most of the times, simplicity beats cleverness.
As an example, Lit + lit-html is nowadays what React was before hooks. It is faster, simpler, more fun to code.
reply