mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
require props in call to super() per react v16.0.25
This commit is contained in:
parent
a4d8f6e2d2
commit
152f91ff09
1 changed files with 2 additions and 2 deletions
|
|
@ -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[]>)
|
||||
|
|
|
|||
Loading…
Reference in a new issue