I've hit a wall. Despite scouring documentation and countless google searches, I can't seem to find the answer to this straightforward query: how do I install/import PINIA in a VUE application?
Let's consider a basic VUE app:
<div id="app">{{ message }}</div>
<script type="module">
import { createApp, ref } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
// This is where I'm stuck
import { pinia } from 'https:WHAT-URT-TO-USE-????'
createApp({
setup() {
const message = ref('Hello Vue!')
return {
message
}
}
}).mount('#app')
</script>
My inquiry:
How do I integrate pinia into this app? Where can I find the correct URL?
I want to avoid using npm install...just plain JS code, no local server involved.
This is not for a server application, but rather a browser-based JS application.
Could someone provide me with a snippet featuring an imported pinia sample application?