🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki
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>`.