File tree Expand file tree Collapse file tree 1 file changed +2
-27
lines changed
Expand file tree Collapse file tree 1 file changed +2
-27
lines changed Original file line number Diff line number Diff 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" %}
You can’t perform that action at this time.
0 commit comments