Skip to content

Commit c234d0f

Browse files
micnicljharb
authored andcommitted
[Docs] no-render-return-value: Fix title
1 parent 5fac02c commit c234d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-render-return-value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Prevent usage of the return value of React.render (react/no-render-return-value)
1+
# Prevent usage of the return value of ReactDOM.render (react/no-render-return-value)
22

33
> `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.
44

0 commit comments

Comments
 (0)