Merge pull request #1111 from djtango/patch-1

Update mithril.md
This commit is contained in:
Pat Cavit 2016-06-17 09:10:12 -07:00 committed by GitHub
commit 73dbc149b5

View file

@ -481,8 +481,8 @@ var MyComponent = {
m.render(document.body, [
//the two lines below are equivalent
m(component, {data: "world"}),
m.component(component, {data: "world"})
m(MyComponent, {data: "world"}),
m.component(MyComponent, {data: "world"})
])
```