mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
fix(docs): Component reference render parameters (#6098)
This commit is contained in:
committed by
GitHub
parent
a86663da84
commit
b1a5b7b0b0
@@ -593,9 +593,7 @@ You should write the `render` method as a pure function, meaning that it should
|
||||
|
||||
#### Parameters {/*render-parameters*/}
|
||||
|
||||
* `prevProps`: Props before the update. Compare `prevProps` to [`this.props`](#props) to determine what changed.
|
||||
|
||||
* `prevState`: State before the update. Compare `prevState` to [`this.state`](#state) to determine what changed.
|
||||
`render` does not take any parameters.
|
||||
|
||||
#### Returns {/*render-returns*/}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user