Skip to content

Commit

Permalink
docs(readme): note on html
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Feb 22, 2022
1 parent 6cf61a9 commit 19522e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -55,6 +55,8 @@ Below is an extremely simple implementation of a Hello World page using Million.
import { m, render } from 'million';

render(document.body, m('p', undefined, ['Hello World!']));

// <p>Hello World</p> rendered to <body>
```

`render()` function has a standard interface that is used in many Virtual DOM libraries. First argument is a DOM node that will be used as the parent DOM reference, and the second one is a Virtual DOM to render.
Expand Down

0 comments on commit 19522e2

Please sign in to comment.