We have a need for a prop type that will validate a component name using regex. For instance, a particular type of component might accept any children of the form *Row or *Card. It made sense to me to add this ability to componentWithName directly, but am open to creating a new prop type as well. What do you think?
We have a need for a prop type that will validate a component name using regex. For instance, a particular type of component might accept any children of the form
*Row
or*Card
. It made sense to me to add this ability tocomponentWithName
directly, but am open to creating a new prop type as well. What do you think?to: @ljharb @airbnb/webinfra