Skip to content

Commit d758a3e

Browse files
authored
fix: make children optional (#505)
1 parent 79503fd commit d758a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface IntersectionObserverProps extends IntersectionOptions {
6262
* Types specific to the PlainChildren rendering of InView
6363
* */
6464
export type PlainChildrenProps = IntersectionOptions & {
65-
children: React.ReactNode;
65+
children?: React.ReactNode;
6666

6767
/**
6868
* Render the wrapping element as this element.

0 commit comments

Comments
 (0)