joshwnj / joshwnj/react-visibility-sensor
Types of property 'children' are incompatible.
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 192
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm getting below error.
TS2322: Type '{ children: Element; onChange: () => (isVisible: any) => void; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
Type '{ children: Element; onChange: () => (isVisible: any) => void; }' is not assignable to type 'Props'.
Types of property 'children' are incompatible.
Type 'Element' is not assignable to type '(args: { isVisible: boolean; visibilityRect?: Shape; }) => ReactNode'.
Type 'Element' provides no match for the signature '(args: { isVisible: boolean; visibilityRect?: Shape; }): ReactNode'.
How to solve this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.