4 ms·
> With React there's no weird "v-if ng-if" template logic that you have to grapple with. To me, Handlebars already gave me enough taste of how horrible and limi
by dereke 8y ago
> With React there's no weird "v-if ng-if" template logic that you have to grapple with. To me, Handlebars already gave me enough taste of how horrible and limiting maintaining template logic outside of components is.
React was a good step in the right direction. But IMO they lost the plot with things like:
- shouldComponentUpdate(nextProps, nextState)
- componentDidUpdate(prevProps, prevState, snapshot)
and the whole props vs state thing. This adds so much unnecessary complexity to the code base.
Thankfully I can get all the benefits of the react style without any of the awkwardness of its API with hyperdom
https://github.com/featurist/hyperdom https://github.com/featurist/hyperdom
- vanillapepsi 8y agoHow is that relevant in any way? If you're using those two you're already doing something wrong. State is local props, props are from parent. How can that concept be "complex" to someone is beyond me.