Reactjs – Is there an idiomatic way of accepting particular children in React?
Suppose you have a Card component that takes content for the header, body and footer. One way to design it would be for consumers to use it like this: <Card header="foo" body="bar" footer="baz" /> But I often prefer something like…