We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1256b8e + 328f584 commit 5811e32Copy full SHA for 5811e32
src/index.tsx
@@ -11,7 +11,7 @@ class AppState {
11
12
constructor() {
13
setInterval(() => {
14
- appState.timer += 1;
+ this.timer += 1;
15
}, 1000);
16
}
17
@@ -39,4 +39,4 @@ class TimerView extends React.Component<{appState: AppState}, {}> {
39
};
40
41
const appState = new AppState();
42
-ReactDOM.render(<TimerView appState={appState} />, document.getElementById('root'));
+ReactDOM.render(<TimerView appState={appState} />, document.getElementById('root'));
0 commit comments