Skip to content

Commit 33d2078

Browse files
committed
Reduce verbosity of Clock component
1 parent 1963803 commit 33d2078

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

sample/app/testComponents/stateful.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,6 @@ export class Clock extends React.Component<{}, { date: Date }> {
192192
1000
193193
);
194194
}
195-
196-
shouldComponentUpdate(){
197-
console.log(`[Clock] shouldComponentUpdate`);
198-
return true;
199-
}
200-
201-
componentWillUpdate(){
202-
console.log(`[Clock] componentWillUpdate`);
203-
}
204-
205-
componentDidUpdate(){
206-
console.log(`[Clock] componentDidUpdate`);
207-
}
208195

209196
componentWillUnmount() {
210197
clearInterval(this.timerID);
@@ -217,7 +204,6 @@ export class Clock extends React.Component<{}, { date: Date }> {
217204
}
218205

219206
render() {
220-
console.log(`[Clock] render()!`);
221207

222208
return React.createElement(
223209
"textView",

0 commit comments

Comments
 (0)