Skip to content

Commit

Permalink
docs: it supports Vue 2
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 4, 2021
1 parent d606b2d commit 07ad921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- 🏗 Modular by design
- 📦 Extremely light

Pinia works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 3.x. **If you are looking for the version compatible with Vue 2.x, check the [`v1` branch](https://github.com/posva/pinia/tree/v1)**.
Pinia works both for Vue 2.x and Vue 3.x. It requires Vue 2 with `@vue/composition-api` `^1.1.0-0` or Vue `^3.2.0-0`.

Pinia is is the most similar English pronunciation of the word _pineapple_ in Spanish: _piña_. A pineapple is in reality a group of individual flowers that join together to create a multiple fruit. Similar to stores, each one is born individually, but they are all connected at the end. It's also a delicious tropical fruit indigenous to South America.

Expand Down Expand Up @@ -109,6 +109,8 @@ yarn add pinia@next
npm install pinia@next
```

Note: If you are using Vue `^3.2.0` or `@vue/composition-api` `^1.1.0` (with Vue 2), give `pinia@beta` a try! [Check this issue](https://github.com/posva/pinia/issues/592) for more information and to ask questions.

## Usage

### Install the plugin
Expand All @@ -121,9 +123,7 @@ import { createPinia } from 'pinia'
app.use(createPinia())
```

This will also add devtools support. Some features like time traveling and editing are still not supported because vue-devtools doesn't expose the necessary APIs yet.

### Creating a Store
### Create a Store

You can create as many stores as you want, and they should each exist in different files:

Expand Down

0 comments on commit 07ad921

Please sign in to comment.