File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
examples/parent-child-demo Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "baseUrl" : " ." ,
4
+ "experimentalDecorators" : true
5
+ }
6
+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import LabeledCheckbox from '../components/LabeledCheckbox';
8
8
import Tagged from '../components/Tagged' ;
9
9
10
10
@traceLifecycle
11
- export default class Parent extends Component {
11
+ class Parent extends Component {
12
12
state = {
13
13
showLastChild : true ,
14
14
x : 42
@@ -85,3 +85,5 @@ class Child extends Component {
85
85
) ;
86
86
}
87
87
}
88
+
89
+ export default Parent ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import LabeledCheckbox from '../components/LabeledCheckbox';
7
7
import Tagged from '../components/Tagged' ;
8
8
9
9
@traceLifecycle
10
- export default class Parent extends Component {
10
+ class Parent extends Component {
11
11
state = {
12
12
showLastChild : true ,
13
13
x : 42
@@ -87,3 +87,5 @@ class Child extends Component {
87
87
) ;
88
88
}
89
89
}
90
+
91
+ export default Parent ;
You can’t perform that action at this time.
0 commit comments