Update mithril.md
Should component be MyComponent?
This commit is contained in:
parent
5cff2945b2
commit
6ffeeaa19d
1 changed files with 2 additions and 2 deletions
|
|
@ -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"})
|
||||
])
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue