Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/docs/hooks-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ During subsequent re-renders, the first value returned by `useState` will always

>Note
>
>React guarantees that `setState` function identity is stable and won't change on re-renders. This is why it's safe to omit from the `useEffect` or `useCallback` dependency list.
>React guarantees that `setState` function identity is stable and won't change on re-renders. This is why it is safe to omit the `setState` function from the `useEffect` or `useCallback` dependency list.

#### Functional updates {#functional-updates}

Expand Down Expand Up @@ -286,7 +286,7 @@ function Counter() {

>Note
>
>React guarantees that `dispatch` function identity is stable and won't change on re-renders. This is why it's safe to omit from the `useEffect` or `useCallback` dependency list.
>React guarantees that `dispatch` function identity is stable and won't change on re-renders. This is why it is safe to omit the `setState` function from the `useEffect` or `useCallback` dependency list.

#### Specifying the initial state {#specifying-the-initial-state}

Expand Down