Skip to content

Commit d1027a5

Browse files
authored
Update destroy.md
1 parent bbe1b0a commit d1027a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/api/wrapper/destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ mount({
1717
}).destroy()
1818
expect(spy.calledOnce).toBe(true)
1919
```
20+
21+
if `attachToDocument` was set to `true` when mounted, the component dom elements will
22+
also be removed from the document.
23+
24+
For functional components, `destroy` only removes the rendered dom elements from the document.

0 commit comments

Comments
 (0)