You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Children should always be actual children, not passed in as a prop.
When using JSX, the children should be nested between the opening and closing
tags. When not using JSX, the children should be passed as additional
arguments to React.createElement.
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
Children should always be actual children, not passed in as a prop.
When using JSX, the children should be nested between the opening and closing
tags. When not using JSX, the children should be passed as additional
arguments to
React.createElement
.Rule Details
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The text was updated successfully, but these errors were encountered: