Browse Source

Fix anchor link for getDerivedStateFromError (#1362)

The anchor for `getDerivedStateFromError` was previously `#getderivedstatefromerror` when it should be `#static-getderivedstatefromerror`
main
Dillon Mulroy 6 years ago
committed by Dan Abramov
parent
commit
c30ab0e369
  1. 2
      content/docs/reference-react-component.md

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

@ -83,7 +83,7 @@ This method is called when a component is being removed from the DOM:
These methods are called when there is an error during rendering, in a lifecycle method, or in the constructor of any child component.
- [`static getDerivedStateFromError()`](#getderivedstatefromerror)
- [`static getDerivedStateFromError()`](#static-getderivedstatefromerror)
- [`componentDidCatch()`](#componentdidcatch)
### Other APIs

Loading…
Cancel
Save