Browse Source

Fix a very small typo (#754)

"potential" -> "potentially"
main
chucksellick 7 years ago
committed by Dan Abramov
parent
commit
dbe5b49bbf
  1. 2
      content/docs/reference-react-component.md

2
content/docs/reference-react-component.md

@ -295,7 +295,7 @@ If you need to update `state` in response to `props` changes, use [`getDerivedSt
### `getSnapshotBeforeUpdate()`
`getSnapshotBeforeUpdate()` is invoked right before the most recently rendered output is committed to e.g. the DOM. It enables your component to capture current values (e.g. scroll position) before they are potential changed. Any value returned by this lifecycle will be passed as a parameter to `componentDidUpdate()`.
`getSnapshotBeforeUpdate()` is invoked right before the most recently rendered output is committed to e.g. the DOM. It enables your component to capture current values (e.g. scroll position) before they are potentially changed. Any value returned by this lifecycle will be passed as a parameter to `componentDidUpdate()`.
For example:

Loading…
Cancel
Save