Rules
no-clone-element
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Presets
core
recommended
recommended-typescript
recommended-type-checked
Description
Disallow cloneElement
.
Using cloneElement is uncommon and can lead to fragile code. This also makes it harder to trace the data flow. Try the alternatives instead.