3 ms·
> This works fine for custom elements (web components), but I think the problem is that in React you don't know what element a component is going to render, so
by the_other 5y ago
> This works fine for custom elements (web components), but I think the problem is that in React you don't know what element a component is going to render, so it's generally much more difficult to target children this way.
This is exactly the problem "spacer components" solve.