Hacker News new | ask | show | jobs
by the_other 1631 days 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.