From 619426ee790683b4755c96c02061c4fec42fa80f Mon Sep 17 00:00:00 2001 From: Yves Dorfsman Date: Sun, 1 Apr 2018 15:15:12 -0600 Subject: [PATCH] To avoid the babel "'this' is not allowed before super()" error --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fc58a9f453..455881b9b3 100644 --- a/README.md +++ b/README.md @@ -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() {