File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,25 @@ Here's how to use it in your module:
18
18
19
19
``` js
20
20
import { renderVue , Vue } from ' hypernova-vue'
21
+ import HeaderComponent from ' ./components/HeaderComponent.vue'
22
+
23
+ const Header = Vue .extend (HeaderComponent)
24
+
25
+ export default renderVue (' Header' , Header)
26
+ ```
27
+
28
+ ## Usage with Vuex
29
+
30
+
31
+ ``` js
32
+ import { renderVuex , Vue } from ' hypernova-vue'
33
+ import store from ' ./store'
34
+ import HeaderComponent from ' ./components/HeaderComponent.vue'
21
35
22
36
const Header = Vue .extend ({
23
- props: [' title' ],
24
- render : function (createElement ) {
25
- return createElement (' h1' , this .title )
26
- }
37
+ ... HeaderComponent,
38
+ store
27
39
})
28
40
29
- export default renderVue (' Header' , Header)
30
- ```
41
+ export default renderVuex (' Header' , Header)
42
+ ```
You can’t perform that action at this time.
0 commit comments