Skip to content

Commit

Permalink
Remove from recommended ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 29, 2022
1 parent a08c908 commit f204f11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rules/no-unstable-nested-components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Disallow creating unstable components inside components (react/no-unstable-nested-components)

💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`, `recommended`.
💼 This rule is enabled in the following [configs](https://github.com/jsx-eslint/eslint-plugin-react#shareable-configurations): `all`.

Creating components inside components (nested components) will cause React to throw away the state of those nested components on each re-render of their parent.

Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ module.exports = {
'react/no-unescaped-entities': 2,
'react/no-unknown-property': 2,
'react/no-unsafe': 0,
'react/no-unstable-nested-component': 0,
'react/prop-types': 2,
'react/react-in-jsx-scope': 2,
'react/require-render-return': 2,
Expand Down

0 comments on commit f204f11

Please sign in to comment.