Chapter 3 · Example 3 · Configuration concerns with elements as props
Layout slots accept anything
A ThreeColumnsLayout takes leftColumn, middleColumn, and rightColumn element props, rendering whatever the consumer supplies in each slot with no configuration.
Loading live editor…