require props in call to super() per react v16.0.25

This commit is contained in:
Collin M. Barrett 2017-12-05 06:24:22 -06:00
parent a4d8f6e2d2
commit 152f91ff09

View file

@ -17,8 +17,8 @@ interface IFilterListsState {
}
export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsState> {
constructor() {
super();
constructor(props: any) {
super(props);
this.state = { filterLists: [], loading: true };
fetch("https://api.filterlists.com/v1/lists")
.then(response => response.json() as Promise<IFilterList[]>)