Templates: update React's component's State and Property type

This commit is contained in:
Stephan
2017-05-04 21:55:58 +02:00
committed by Steve Sanderson
parent 214a908c92
commit f2260d572f
10 changed files with 10 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ interface CounterState {
currentCount: number;
}
export class Counter extends React.Component<any, CounterState> {
export class Counter extends React.Component<{}, CounterState> {
constructor() {
super();
this.state = { currentCount: 0 };