Closed ryan-sandy closed 5 years ago
airbnb-prop-types has childrenOf, which is a bit more useful than just “node” imo.
@ljharb That's a nifty package. I didn't know it existed. Thanks for the tip. I think this will solve my problems.
Is something like childrenOfType
also planned for prop-types
? It's quite useful, to guarantee the correct use of compound components. 😄
Closing as a duplicate of #61.
How would people feel about a children shorthand?