🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
Intermédiaire

Setup Store Pinia (Vue 3)

#vuejs #javascript #frontend #pinia

Configure un store global avec Pinia pour la gestion d'état Vue.js.

Montre-moi comment configurer Pinia dans une app Vue 3. 1. **Installation** : Dans `main.js`. 2. **Store** : Crée un store `useUserStore` avec : - `state` : user null. - `getters` : isAuthenticated. - `actions` : login(email, password) (simulé). 3. **Composant** : Comment utiliser le store dans un `<script setup>`.