mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Templates: update React's component's State and Property type
This commit is contained in:
@@ -6,7 +6,7 @@ interface FetchDataExampleState {
|
||||
loading: boolean;
|
||||
}
|
||||
|
||||
export class FetchData extends React.Component<any, FetchDataExampleState> {
|
||||
export class FetchData extends React.Component<{}, FetchDataExampleState> {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = { forecasts: [], loading: true };
|
||||
|
||||
Reference in New Issue
Block a user