4 ms·
> and they want speed They won't get it with React. And I'm referring to both how fast the webapp runs and development speed. It gets too complicated too quick
by ScottFree 7y ago
> and they want speed
They won't get it with React. And I'm referring to both how fast the webapp runs and development speed. It gets too complicated too quickly, even for relatively small sites.
- mc3 7y agoWhether or not it seems complicated depends on if you have nailed down the mental model. It's a bit like Git, in that respect.
- ScottFree 7y agoComplexity is a very real and objective thing. When you can't 100% guarantee your program won't go into an infinite loop when you change a single line, it's too complex.
- mc3 7y agoI don't know of any infinite loop problems in React. I would think they are less likely than using MVC / JQuery style patterns.
- ScottFree 7y agoHave you done a lot of work with Hooks and useEffect? React changed the entire component lifecycle with the introduction of hooks. All sorts of weird things trigger re-renders now, including when a dependent function changes. You have to surround all of those with useCallback. I should do a thorough writeup of the infinite loop issue in React.
- mc3 7y agoI've not used hooks yet, but it's on my list to learn. Thanks for the warning though!