5 ms·
Modern 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
by ricardobeat 4y ago
Modern 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.