Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Commit 54f50d2

Browse files
committed
Failing test
1 parent 623cffe commit 54f50d2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from 'react';
2+
3+
export default class MyComponent extends React.Component {
4+
render() {
5+
return <button onClick={this.onclick.bind(this)} />;
6+
}
7+
8+
onclick() {
9+
this.setState({foo: 1});
10+
this.setState({foo: 2});
11+
}
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as React from 'react';
2+
export default class MyComponent extends React.Component<{
3+
}, { foo: number; } > {
4+
render() {
5+
return <button onClick={this.onclick.bind(this)}/>;
6+
}
7+
onclick() {
8+
this.setState({ foo: 1 });
9+
this.setState({ foo: 2 });
10+
}
11+
}

0 commit comments

Comments
 (0)