Skip to content

Commit a08c908

Browse files
committed
context-less writing
1 parent 327b015 commit a08c908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-unstable-nested-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function Component() {
8484

8585
Creating nested but memoized components is currently not detected by this rule but should also be avoided.
8686
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.
8888
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.
8989

9090
```jsx

0 commit comments

Comments
 (0)