Skip to content

Commit

Permalink
[Docs] no-render-return-value: Fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
micnic authored and ljharb committed Jan 10, 2020
1 parent 5fac02c commit c234d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-render-return-value.md
@@ -1,4 +1,4 @@
# Prevent usage of the return value of React.render (react/no-render-return-value)
# Prevent usage of the return value of ReactDOM.render (react/no-render-return-value)

> `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.
Expand Down

0 comments on commit c234d0f

Please sign in to comment.