React Children vs Slots: When to Use Each Pattern?
For a long time, when I needed to make a React component flexible, my first thought always was:
Just pass everything through children.
And in many cases, that's exactly what you should do.
But once
aleksandradudkina.hashnode.dev6 min read