Re:Introducing Hooks
by anonytrary on Thursday October 25, 2018 @05:16PM
(#18304651)
Unpopular opinion: There are too many cooks. I used React two years ago because the API was tiny, simple and elegant. They are adding new API features left and right, and the framework feels very uncoordinated now. The surface area is way bigger than it needs to be. This is my cue to finally explore other frameworks.
[ Parent
| on HN ]
Re:Introducing Hooks
by codingdave on Thursday October 25, 2018 @08:36PM
(#18305861)
I tend to agree, but you don't have to move at the same speed as the framework. If you have a version that is working well for your needs, stick with it for a year. Then decide when and where to upgrade. You can let the dust settle on new features, let other people learn the harsh lessons and come up with best practices, and then you follow in their footsteps, stably upgrading your codebase to exactly the point that makes sense.
Or, if you prefer a business cliche, prefer leading edge over bleeding edge.
I agree with you, but I've also tried other frameworks and there isn't a single one that is all-around better than React.
Unless you're willing to migrate to other compile-to-js languages.
If you aren't interested in 3rd party components or React 16+ features... you could try Inferno or Preact as alternatives with JSX and a similar API.
Have you tried mithril.js?
Re:Introducing Hooks
by Technetium_Hat on Friday October 26, 2018 @06:17PM
(#18313096)
es6 (with babel) is already effectively a compile-to-js language