docs: merge latest docs from next

This commit is contained in:
Pat Cavit 2017-05-01 22:46:23 -07:00
parent 99608d1556
commit b71dc2762e
8 changed files with 159 additions and 10 deletions

View file

@ -27,6 +27,10 @@ var Counter = {
m.mount(document.body, Counter)
```
To pass arguments when mounting a component use:
```javascript
m.mount(element, {view: function () {return m(Component, attrs)}})
```
---
### Signature