4 ms·
So every React app can be effortlessly refactored to use whatever shiny new latest and greatest architecture abstraction React comes up with?
by 5cott0 6y ago
So every React app can be effortlessly refactored to use whatever shiny new latest and greatest architecture abstraction React comes up with?
- the_other 6y agoNo, and FB themselves discourage this in their documentation. Regardless of upgrade paths, React <15 would still let you use HoCs w/out adding excess element nesting. I don’t contest that the older React tended towards div-itis if you weren’t careful with how you used it. But this thread was about Higher Order Components (or wrapper functions), which don’t have any inherent effect on nesting.