Browse Source

Fix URL's anchor to "Callback Refs" page (#3810)

* Fix URL's anchor to "Callback Refs" page

Replace "#the-ref-callback-attribute" with "#callback-refs"

* Update content/docs/reference-react-dom.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
main
tusba 3 years ago
committed by GitHub
parent
commit
6bde1313e3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/reference-react-dom.md

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

@ -50,7 +50,7 @@ If the optional callback is provided, it will be executed after the component is
>
> `ReactDOM.render()` currently returns a reference to the root `ReactComponent` instance. However, using this return value is legacy
> and should be avoided because future versions of React may render components asynchronously in some cases. If you need a reference to the root `ReactComponent` instance, the preferred solution is to attach a
> [callback ref](/docs/more-about-refs.html#the-ref-callback-attribute) to the root element.
> [callback ref](/docs/refs-and-the-dom.html#callback-refs) to the root element.
>
> Using `ReactDOM.render()` to hydrate a server-rendered container is deprecated and will be removed in React 17. Use [`hydrate()`](#hydrate) instead.

Loading…
Cancel
Save