Update mithril.md

Should component be MyComponent?
This commit is contained in:
Deon Tan 2016-06-17 16:13:02 +01:00 committed by GitHub
parent 5cff2945b2
commit 6ffeeaa19d

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"})
])
```