update docs, add descriptions for api methods

This commit is contained in:
Leo Horie 2016-12-02 17:51:07 -05:00
parent d56c30cc4a
commit cdb9017a72
25 changed files with 613 additions and 40 deletions

View file

@ -1,5 +1,6 @@
# render(element, vnodes)
- [Description](#description)
- [Signature](#signature)
- [How it works](#how-it-works)
- [Why Virtual DOM](#why-virtual-dom)
@ -8,6 +9,17 @@
---
### Description
Renders a template to the DOM
```javascript
m.render(document.body, "hello")
// <body>hello</body>
```
---
### Signature
`m.render(element, vnodes)`