You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/options.md
+2-5
Original file line number
Diff line number
Diff line change
@@ -336,15 +336,12 @@ wrapper.destroy()
336
336
`attachToDocument` is deprecated and will be removed in future releases. Use [`attachTo`](#attachto) instead. For example, if you need to attach the component to the document.body:
337
337
338
338
```js
339
-
constelem=document.createElement('div')
340
-
if (document.body) {
341
-
document.body.appendChild(elem)
342
-
}
343
339
wrapper =mount(Component, {
344
-
attachTo:elem
340
+
attachTo:document.body
345
341
})
346
342
```
347
343
344
+
For more information, see [`attachTo`](#attachto)'s tip above.
348
345
:::
349
346
350
347
Like [`attachTo`](#attachto), but automatically creates a new `div` element for you and inserts it into the body.
0 commit comments