Open thany opened 1 year ago
Consider this React component called in a Vue template:
<hello-from-react />
Couldn't be simpler. But it passes children which aren't there at all. Using forbidExtraProps from airbnb-prop-types it fails prop-type validation.
children
Please ONLY pass children if a component has content, a <slot>, or an explicit children prop.
<slot>
Same problem occurs in that other superfluous prop.
Consider this React component called in a Vue template:
Couldn't be simpler. But it passes
children
which aren't there at all. Using forbidExtraProps from airbnb-prop-types it fails prop-type validation.Please ONLY pass children if a component has content, a
<slot>
, or an explicitchildren
prop.Same problem occurs in that other superfluous prop.