[Vuejs]-How to permanently store vnodes in browser?

0👍

You can save the vnode data instead, like this

 import { h } from 'vue'
 function generateVnodeByData(data){
    return h(...data)
 }

 const data = ['div', {class: 'localData'}, []]

 const localNode = generateVnodeByData(data)
 

you can store data to browser and convert data to node in js

Leave a comment