Skip to content

Commit cda1397

Browse files
committed
remove appendChild.call in Text
1 parent 2d31a6e commit cda1397

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

demo/App.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ class App extends Component {
1111
Congrats! You've successfully completed the tutorial. I'm excited to
1212
see what you build
1313
</Text>
14+
<Text>Hell yeah! The new renderer api is working.</Text>
15+
<Text>
16+
Congrats! You've successfully completed the tutorial. I'm excited to
17+
see what you build
18+
</Text>
1419
</Document>
1520
);
1621
}

src/components/Text.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { noop } from '../utils/noop';
2-
import { appendChild } from '../utils/appendChild';
32

43
class Text {
54
constructor(root, props) {
@@ -10,7 +9,7 @@ class Text {
109
}
1110

1211
appendChild(child) {
13-
appendChild.call(this, child);
12+
this.adder.addText(child);
1413
}
1514

1615
render() {

0 commit comments

Comments
 (0)