Skip to content
Pinia · Lesson 02 of 06 · Builds on Your first store

Setup stores

Write a Pinia store the way you write a component, with refs, computed values and functions, and add the $reset() that setup stores lack.

ref()computed()add()