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';
88import Tagged from '../components/Tagged' ;
99
1010@traceLifecycle
11- export default class Parent extends Component {
11+ class Parent extends Component {
1212 state = {
1313 showLastChild : true ,
1414 x : 42
@@ -85,3 +85,5 @@ class Child extends Component {
8585 ) ;
8686 }
8787}
88+
89+ export default Parent ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import LabeledCheckbox from '../components/LabeledCheckbox';
77import Tagged from '../components/Tagged' ;
88
99@traceLifecycle
10- export default class Parent extends Component {
10+ class Parent extends Component {
1111 state = {
1212 showLastChild : true ,
1313 x : 42
@@ -87,3 +87,5 @@ class Child extends Component {
8787 ) ;
8888 }
8989}
90+
91+ export default Parent ;
You can’t perform that action at this time.
0 commit comments