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() {
8484
8585Creating nested but memoized components is currently not detected by this rule but should also be avoided.
8686If 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.
8888If 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.
8989
9090``` jsx
You can’t perform that action at this time.
0 commit comments