Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marconi1992 committed Mar 17, 2019
1 parent 1f033ae commit 0ea7705
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,25 @@ Here's how to use it in your module:

```js
import { renderVue, Vue } from 'hypernova-vue'
import HeaderComponent from './components/HeaderComponent.vue'

const Header = Vue.extend(HeaderComponent)

export default renderVue('Header', Header)
```

## Usage with Vuex


```js
import { renderVuex, Vue } from 'hypernova-vue'
import store from './store'
import HeaderComponent from './components/HeaderComponent.vue'

const Header = Vue.extend({
props: ['title'],
render: function(createElement) {
return createElement('h1', this.title)
}
...HeaderComponent,
store
})

export default renderVue('Header', Header)
```
export default renderVuex('Header', Header)
```

0 comments on commit 0ea7705

Please sign in to comment.