diff --git a/react/index.d.ts b/react/index.d.ts index d9e601095a..6db2073064 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -166,7 +166,7 @@ declare namespace React { setState(f: (prevState: S, props: P) => S, callback?: () => any): void; setState(state: S, callback?: () => any): void; forceUpdate(callBack?: () => any): void; - render(): JSX.Element; + render(): JSX.Element | null; // React.Props is now deprecated, which means that the `children` // property is not available on `P` by default, even though you can @@ -2467,4 +2467,4 @@ declare global { use: React.SVGProps; } } -} \ No newline at end of file +}