Merge pull request #1705 from ferhate/patch-1

Fixes component usage in jsx.md.
This commit is contained in:
Isiah Meadows 2017-03-13 12:58:58 -04:00 committed by GitHub
commit 9b9c1a8c0f

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))
```
---