Replies: 4 comments 8 replies
-
I don't think. I prefer differentiating statefull (class) components and stateless (functional) components just like react used it before hooks. |
Beta Was this translation helpful? Give feedback.
-
Just want to point out, if anyone is looking for a light JSX experiance (with hooks and a fimilar API) with Preact (or you can bring your own framework), with SSR/SSG and various hydration options, you can check this out: https://frugal.deno.dev/ |
Beta Was this translation helpful? Give feedback.
-
@yandeu I experimented with nanojsx and hooks. maybe this helped. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I am not alone, but there are not that many who think so, but hooks are the worst which came to React and from there to other libs like Preact. I am only here because this lib does not claim to be compatible to React. I am searching for an alternative to Preact/React which has no hooks at all. Why I am strictly against hooks:
I have no problem with the fact that hooks exist in general. But the React devs choose to implement them in the core and forcing people to use them, instead of creating a new hooks based framework or a independent addon. Maybe there was the nice idea in the beginning of just adding a simple state to a stateles functional component but the idea to replace all class components with statefull functions was not a good idea and so even the good idea in the beginning was a bad idea at the end. As a dev who needs consistency over a long period of time for the projects I work on (they are not 4 weeks dev, fire and forget, they need maintenance and feature development over many years), React is today a absolute nogo for me for new projects. |
Beta Was this translation helpful? Give feedback.
-
Just wondering if you plan on adding the ability to use not just Classes and class lifecycle methods, but also of a more functional approach with hooks for client side state?
In other words, are there plans to add in hooks as an alternative to classes?
Beta Was this translation helpful? Give feedback.
All reactions