3 ms·
This was a lot of the problems I had when I had to work with KnockoutJS as well. So much boilerplate, I could spend a whole day writing code and barely have th
by bluefirebrand 4y ago
This was a lot of the problems I had when I had to work with KnockoutJS as well.
So much boilerplate, I could spend a whole day writing code and barely have the same stuff written that it would take me two hours to do with React.
I love stuff that makes me more productive and minimizes my boilerplate writing.
- ricardobeat 4y agoModern React code with hooks, contexts and all went almost full circle though, it's now not too far off from the amount of code you'd write with Backbone, maybe more.
- woah 4y agoYou don't have to use any of that stuff. You can still have React act as a glorified template library, drill all your data down through props, etc.
- bobthepanda 4y agoHooks, by themselves, can be ok, since you avoid componentDidMount, componentDidUnmount, etc. I’ve started enjoying functional components more once I realized I could destructure props in the function parameters rather than in the very first line of the method.
- b4je7d7wb 4y agoI hate the boilerplate in react. Import, types for props, exports and all the hooks. Many codebases I've seen have even conventions which increase it. Small things but it adds up and I unconciously avoid creating new components when possible. Many people use some shortcuts to autogenerate all of this stuff, but I don't like tools like this. Svelte is the gold standard of no boilerplate. An empty file is a valid component.