Skip to content

Commit 5b62f48

Browse files
committed
Fix CodeSandbox warnings
1 parent 59734e4 commit 5b62f48

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"experimentalDecorators": true
5+
}
6+
}

examples/parent-child-demo/src/samples/Legacy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import LabeledCheckbox from '../components/LabeledCheckbox';
88
import 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;

examples/parent-child-demo/src/samples/New.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import LabeledCheckbox from '../components/LabeledCheckbox';
77
import 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;

0 commit comments

Comments
 (0)