Skip to content

Commit

Permalink
Doc change for prevContext removal in CDU (#10836)
Browse files Browse the repository at this point in the history
* Doc change for prevContext removal in CDU

Ref: #8631

* Minor rewording
  • Loading branch information
STRML authored and gaearon committed Sep 26, 2017
1 parent 893919f commit 5120bf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ If `contextTypes` is defined within a component, the following [lifecycle method
- [`componentWillReceiveProps(nextProps, nextContext)`](/react/docs/react-component.html#componentwillreceiveprops)
- [`shouldComponentUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#shouldcomponentupdate)
- [`componentWillUpdate(nextProps, nextState, nextContext)`](/react/docs/react-component.html#componentwillupdate)
- [`componentDidUpdate(prevProps, prevState, prevContext)`](/react/docs/react-component.html#componentdidupdate)

> Note: As of React 16, `componentDidUpdate` no longer receives `prevContext`.
## Referencing Context in Stateless Functional Components

Expand Down

0 comments on commit 5120bf8

Please sign in to comment.