Pass Multiple Children to a React Component with Slots

added by JavaScript Kicks
7/31/2018 1:50:27 PM

703 Views

You need to create a reusable component. But the children prop won't cut it. This component needs to be able to accept multiple children and place them in the layout as it sees fit - not right next to each other. Maybe you're creating a Layout with a header, a sidebar, and a content area.


0 comments