Skip to content

Commit bdc60c2

Browse files
authored
FIx typo: props => context (#6300)
1 parent 0d21915 commit bdc60c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/Component.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ If you define `UNSAFE_componentWillReceiveProps`, React will call it when the co
813813
#### Parameters {/*unsafe_componentwillreceiveprops-parameters*/}
814814
815815
- `nextProps`: The next props that the component is about to receive from its parent component. Compare `nextProps` to [`this.props`](#props) to determine what changed.
816-
- `nextContext`: The next props that the component is about to receive from the closest provider. Compare `nextContext` to [`this.context`](#context) to determine what changed. Only available if you specify [`static contextType`](#static-contexttype) (modern) or [`static contextTypes`](#static-contexttypes) (legacy).
816+
- `nextContext`: The next context that the component is about to receive from the closest provider. Compare `nextContext` to [`this.context`](#context) to determine what changed. Only available if you specify [`static contextType`](#static-contexttype) (modern) or [`static contextTypes`](#static-contexttypes) (legacy).
817817
818818
#### Returns {/*unsafe_componentwillreceiveprops-returns*/}
819819

0 commit comments

Comments
 (0)