Skip to content

Commit

Permalink
Merge pull request #1151 from MatthewHerbst/link-fix/no-render-return…
Browse files Browse the repository at this point in the history
…-value

Link fix: ReactDOM docs were broken out
  • Loading branch information
lencioni committed Apr 13, 2017
2 parents 24ea6f3 + cdfc508 commit 82648f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-render-return-value.md
Expand Up @@ -2,7 +2,7 @@

> `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](http://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute) to the root element.
Source: [React Top-Level API documentation](http://facebook.github.io/react/docs/top-level-api.html#reactdom.render)
Source: [ReactDOM documentation](https://facebook.github.io/react/docs/react-dom.html#render)

## Rule Details

Expand Down

0 comments on commit 82648f3

Please sign in to comment.