Closed pors closed 1 year ago
Add to the index.d.ts
export interface SwiperProps { ..., children?: React.ReactNode; }
Add to the index.d.ts
export interface SwiperProps { ..., children?: React.ReactNode; }
which index.d.ts I don't have one on my project.
so create a class component for it, its the best option for now?
+1 for this feature request
Resolved in #84 (released also as v2.2.4)
When using a functional React component for e.g.
NextComponent
there is a TypeScript mismatch:This TypeScript error disappears when using a class component.