Comment

Comment by searchableguy

People inheriting old react codebases now have to deal with way more complexity.

For example, everyone was using styled components 2-3 years ago and now they are moving away. The complexity styled components introduced has to be managed alongside the current trend (tailwind?). Old styled components codebase looks horrible. They end up with Java inheritance hell. You create a button, then create another button inheriting that button but with slightly different behavior. Now that one button is extended by God knows how many and any change is going to break all of it.

There have been many patterns which got popular but then we found problems and stopped using them.

There is also hooks vs classes.

There is an exponential complexity in a legacy react codebase if it is not maintained well because react itself is not opinionated.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton