Skip to content

Commit

Permalink
To avoid the babel "'this' is not allowed before super()" error (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorfsmay authored and danez committed Apr 4, 2018
1 parent a4cc6d0 commit 4e5b482
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ This mode also enforces you to set a handler for `onSelect`. `defaultIndex` does
```js
class App extends Component {
constructor() {
super();
this.state = { tabIndex: 0 };
}
render() {
Expand Down

0 comments on commit 4e5b482

Please sign in to comment.