]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: comment line length to avoid scrollbar (#1644)
authorMichael Härtl <mh@m-h-it.de>
Sat, 10 Sep 2022 06:45:13 +0000 (08:45 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Sep 2022 06:45:13 +0000 (08:45 +0200)
packages/docs/core-concepts/index.md

index 0db512f127850a18acc464f5062efa2c9a0456b8..9766eb3db9ce1561207c62e993843c1de5a0c85a 100644 (file)
@@ -10,7 +10,9 @@ Before diving into core concepts, we need to know that a store is defined using
 ```js
 import { defineStore } from 'pinia'
 
-// You can name the return value of `defineStore()` anything you want, but it's best to use the name of the store and surround it with `use` and `Store` (e.g. `useUserStore`, `useCartStore`, `useProductStore`)
+// You can name the return value of `defineStore()` anything you want, 
+// but it's best to use the name of the store and surround it with `use` 
+// and `Store` (e.g. `useUserStore`, `useCartStore`, `useProductStore`)
 // the first argument is a unique id of the store across your application
 export const useStore = defineStore('main', {
   // other options...