<script type="importmap">
"vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
<h3>Vue Js local stroge object</h3>
<p>Vue Js Set,Get,Remove items from local storage</p>
<p>{{localstoreData}}</p>
<button @click="setData">Set items to local storage</button><br><br>
<button @click="getData">Get items from local storage</button><br><br>
<button @click="removeData">Delete item from local storage</button><br><br>
import { createApp } from "vue";
localstoreData: localStorage.getItem('fruit')
localStorage.setItem('fruit', this.data);
alert('Sucessfully Data added into localstorage');
this.localstoreData = localStorage.getItem('fruit')
localStorage.removeItem('fruit')
this.localstoreData = localStorage.getItem('fruit');;