feat: add function for unrendering/removing components created with h()
This commit is contained in:
parent
a2a28f9dbf
commit
68573f1262
1 changed files with 6 additions and 0 deletions
6
utils/unrender.ts
Normal file
6
utils/unrender.ts
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import { render } from "vue";
|
||||||
|
|
||||||
|
export default (div: HTMLDivElement) => {
|
||||||
|
render(null, div);
|
||||||
|
div.remove();
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue