Fixes component usage.

Updates `m.mount(document.body, <MyComponent />)` to `m.render(document.body, <MyComponent />)`.

After consuming a component using `m(component)`, you can't *mount* it to element but you can *render*.
This commit is contained in:
Ferhat Elmasgüneş 2017-03-12 15:34:01 +02:00 committed by GitHub
parent 7d0df1d09a
commit 0ed3695f78

View file

@ -45,8 +45,8 @@ var link = <a href={url}>{greeting + "!"}</a>
Components can be used by using a convention of uppercasing the first letter of the component name:
```jsx
m.mount(document.body, <MyComponent />)
// equivalent to m.mount(document.body, m(MyComponent))
m.render(document.body, <MyComponent />)
// equivalent to m.render(document.body, m(MyComponent))
```
---