Skip to content

Commit 97f2111

Browse files
christianalfonigitbook-bot
authored andcommitted
GitBook: [v28] one page modified
1 parent cc5353f commit 97f2111

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

views/vue.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ createApp(withOvermind(overmind, App)).mount('#app')
133133
{% endtab %}
134134
{% endtabs %}
135135

136-
The hooks also allows you to point to specific namespaces:
136+
### Reference specific state and actions
137137

138138
{% tabs %}
139139
{% tab title="components/SomeComponent.vue" %}
@@ -159,32 +159,7 @@ The hooks also allows you to point to specific namespaces:
159159
{% endtab %}
160160
{% endtabs %}
161161

162-
You also have **effects** and **reaction** available on your hooks:
163-
164-
{% tabs %}
165-
{% tab title="components/SomeComponent.vue" %}
166-
```javascript
167-
<div @click="actions.onClick">
168-
{{ state.foo }}
169-
</div>
170-
</template>
171-
<script>
172-
import { hooks } from '../overmind'
173-
174-
export default {
175-
setup() {
176-
const effects = hooks.effects()
177-
const reaction = hooks.reaction()
178-
179-
return { state, actions }
180-
}
181-
}
182-
</script>
183-
```
184-
{% endtab %}
185-
{% endtabs %}
186-
187-
If you prefer using JSX, that is also possible:
162+
### Using JSX
188163

189164
{% tabs %}
190165
{% tab title="components/SomeComponent.vue" %}

0 commit comments

Comments
 (0)