Rules
no-children-prop
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Features
🔍
What it does
Disallows passing 'children' as a prop.
Most of the time, children
should 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
.