})
```
-### With `setup()`
-
-While Composition API is not for everyone, the `setup()` hook can make using Pinia easier to work with in the Options API. No extra map helper functions needed!
-
-```js
-import { useCounterStore } from '../stores/counterStore'
-
-export default {
- setup() {
- const counterStore = useCounterStore()
-
- return { counterStore }
- },
- computed: {
- tripleCounter() {
- return this.counterStore.counter * 3
- },
- },
-}
-```
-
-### Without `setup()`
+#### Without `setup()`
If you are not using the Composition API, and you are using `computed`, `methods`, ..., you can use the `mapState()` helper to map state properties as readonly computed properties: