mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user