mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Fix an argument name of TestUtils.renderIntoDocument (#8104)
This commit is contained in:
committed by
Dan Abramov
parent
4f96d680c7
commit
27cfc54d16
@@ -122,10 +122,10 @@ ReactTestUtils.Simulate.keyDown(node, {key: "Enter", keyCode: 13, which: 13});
|
||||
### `renderIntoDocument()`
|
||||
|
||||
```javascript
|
||||
renderIntoDocument(instance)
|
||||
renderIntoDocument(element)
|
||||
```
|
||||
|
||||
Render a component into a detached DOM node in the document. **This function requires a DOM.**
|
||||
Render a React element into a detached DOM node in the document. **This function requires a DOM.**
|
||||
|
||||
> Note:
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user