From: Michael Härtl Date: Sat, 10 Sep 2022 06:45:13 +0000 (+0200) Subject: docs: comment line length to avoid scrollbar (#1644) X-Git-Tag: @pinia/nuxt@0.4.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e35ccde3c71affff231be7bb4f48cfc9e99fdbf;p=thirdparty%2Fvuejs%2Fpinia.git docs: comment line length to avoid scrollbar (#1644) --- diff --git a/packages/docs/core-concepts/index.md b/packages/docs/core-concepts/index.md index 0db512f1..9766eb3d 100644 --- a/packages/docs/core-concepts/index.md +++ b/packages/docs/core-concepts/index.md @@ -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...