4 ms·
No, 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 n
by the_other 6y ago
No, 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.