3 ms·
Nah. The beauty of React is in how small and focused it has remained. This leaves developer choice to add (or not) as much complexity as your app needs. Framewo
by ramesh31 4y ago
Nah. The beauty of React is in how small and focused it has remained. This leaves developer choice to add (or not) as much complexity as your app needs. Framework lock-in is the nightmare route that Angular went down, and Next.js in particular is a bloated mess I wouldn't touch with a ten foot pole. The promise of these frameworks is to solve every problem for you, but the reality is that each one is half-way solved poorly.
What works best for JS is the "meta" framework approach. That is, collections of really well done libraries that solve one single problem extremely well and play together nicely without any actual knowledge of each other.
- PaulHoule 4y agoI dunno…. Hooks are something I didn’t ask for. The good news is that the React team seems to have painted themselves into a corner so development is slowing down and they won’t be introducing more bad ideas. In principle I like the virtual DOM and how you can use components much like in WPF or Java FX but React does not have a good story for complex applications where data flows sideways, not just up and down.
- satvikpendem 4y ago> Hooks are something I didn’t ask for. I did. Reusable components with lifecycle events were a pain. Now if I want to add some complex lifecycle logic, I can package that up into a neat, tidy function (which is all hooks are, stateful functions) and call it. In my experience, many people who don't see the value of hooks have never experienced the pain points that they solve, or they're just newer to React and have never dealt (extensively) with class components.
- PaulHoule 4y agoPersonally I know how to do very complex things with class components and make them reusable but that's because I have been doing object oriented programming intensively since 1994. (Kinda tried writing serial communication code in C++ in 1989 but I never really got OO until I got into Java.) My perception of hooks is that nobody really understands them or what the real rules for using them are, but it usually works when people copy stuff out of stackoverflow until it doesn't. The fact that it is functions and not methods seems to make some people squee ("It's functional!") but it is pure insanity and not functional at all because the order that hooks get called matter.
- leerob 4y agoWhy do you think Next.js is bloated?