aloisdeniel / aloisdeniel/react-motion-waypoint
Props type in constructor is missing
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Example in ScrollingProvider component:
```typescript
export class ScrollingProvider extends React.Component {
private ticking = false;
constructor(props:any){
super(props);
this.state = { scroll: window.scrollY };
this.onScroll = this.onScroll.bind(this);
}
// ...
}
```
This isn't a critical issue, but you can use **ScrollingProps** instead of **any**:
```typescript
constructor(props:ScrollingProps){
super(props);
this.state = { scroll: window.scrollY };
this.onScroll = this.onScroll.bind(this);
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.