File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ function Component() {
84
84
85
85
Creating nested but memoized components is currently not detected by this rule but should also be avoided.
86
86
If the ` useCallback ` or ` useMemo ` hook has no dependency, you can safely move the component definition out of the render function.
87
- If it does have dependencies, you should refactor the code so that you're able to move the component definition out of the render function.
87
+ If the hook does have dependencies, you should refactor the code so that you're able to move the component definition out of the render function.
88
88
If you want React to throw away the state of the nested component, use a [ ` key ` ] ( https://reactjs.org/docs/lists-and-keys.html#keys ) instead.
89
89
90
90
``` jsx
You can’t perform that action at this time.
0 commit comments