title: only allow children of a specific type in a react component
body: <p>I have a <code>Card</code> component and a <code>CardGroup</code> component, and I'd like to throw an error when <code>CardGroup</code> has children that aren't <code>Card</code> components. Is this possible, or am I trying to solve the wrong problem?</p>