update code style
This commit is contained in:
parent
be230f5829
commit
9236471739
|
@ -52,7 +52,7 @@ class HelloElement extends WeElement {
|
|||
Hello {props.msg} {props.propFromParent}
|
||||
<div>
|
||||
Click Me!
|
||||
{props.num}
|
||||
{props.num}
|
||||
</div>
|
||||
<div>data: {data.a}</div>
|
||||
<div>props {props.num}</div>
|
||||
|
|
|
@ -26,7 +26,7 @@ class MyApp extends WeElement {
|
|||
return (
|
||||
<div onClick={this.onClick}>
|
||||
Hello {props.name} {data.abc}
|
||||
<hello-element
|
||||
<hello-element
|
||||
onAbc={this.onAbc}
|
||||
prop-from-parent={data.passToChild}
|
||||
msg="WeElement"
|
||||
|
|
Loading…
Reference in New Issue