5 ms·
I've stated several times that hooks are awful, and the general response I get is "oh, you just don't get it," but the way they are implemented is not very func
by mrozbarry 6y ago
I've stated several times that hooks are awful, and the general response I get is "oh, you just don't get it," but the way they are implemented is not very functional, but I guess the point is that they are side effects.
In terms of other things, JSX has nothing to do with stateless components, it's just a way to simplify writing `React.createElement(yourElementOrTagName, { ...props }, [ ...children ]);`
And for debugging, the absolute best advice I can give is to build smaller components, and use something like storybook to demo/isolate behaviour and tinker with it.
In general, react is a perfectly fine choice, though. I don't think it's any more strange than angular/vue/hyperapp/etc., but it is certainly lower level, which can feel less intuitive.