update docs, add descriptions for api methods
This commit is contained in:
parent
d56c30cc4a
commit
cdb9017a72
25 changed files with 613 additions and 40 deletions
|
|
@ -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)`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue