commit
73dbc149b5
1 changed files with 2 additions and 2 deletions
|
|
@ -481,8 +481,8 @@ var MyComponent = {
|
||||||
|
|
||||||
m.render(document.body, [
|
m.render(document.body, [
|
||||||
//the two lines below are equivalent
|
//the two lines below are equivalent
|
||||||
m(component, {data: "world"}),
|
m(MyComponent, {data: "world"}),
|
||||||
m.component(component, {data: "world"})
|
m.component(MyComponent, {data: "world"})
|
||||||
])
|
])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue