From 2b4bc6babb503045683ca14334ed9db4ecdb25ca Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 30 Apr 2021 11:12:52 +0200 Subject: [PATCH] docs: import exports --- docs/introduction.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/introduction.md b/docs/introduction.md index 53969909..406e8735 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -7,6 +7,7 @@ Pinia [started](https://github.com/posva/pinia/commit/06aeef54e2cad66696063c6282 You start by creating a store: ```js +// stores/counter.js import { defineStore } from 'pinia' export const useCounterStore = defineStore({ @@ -22,6 +23,8 @@ export const useCounterStore = defineStore({ And then you _use_ it in a component: ```js +import { useCounterStore } from '@/stores/counter' + export default { setup() { const counter = useCounterStore() -- 2.47.3