Skip to content

Commit

Permalink
docs(readme): add docs ref links
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Mar 10, 2022
1 parent cfd1067 commit 4372968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ render(document.body, m('h1', _, ['Hello World!']));
// <h1>Hello World</h1> 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.
[`render()`](https://millionjs.org/docs/api/basics/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.

`m()` function will instantiate a "Virtual DOM" node for an element.
[`m()`](https://millionjs.org/docs/api/basics/m) function will instantiate a "Virtual DOM" node for an element.

`_` is a shorthand for the `undefined` value.

Expand Down

0 comments on commit 4372968

Please sign in to comment.