Doc change for prevContext removal in CDU (#10836)

* Doc change for prevContext removal in CDU

Ref: https://github.com/facebook/react/issues/8631

* Minor rewording
This commit is contained in:
Samuel Reed
2017-09-26 12:29:35 -05:00
committed by Dan Abramov
parent 0e87a042a8
commit ffa102d71a

View File

@@ -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