diff --git a/react/react-global.d.ts b/react/react-global.d.ts index 3c1a69e43..4ba7266eb 100644 --- a/react/react-global.d.ts +++ b/react/react-global.d.ts @@ -136,6 +136,7 @@ declare module React { setState(f: (prevState: S, props: P) => S, callback?: () => any): void; setState(state: S, callback?: () => any): void; forceUpdate(): void; + render(): JSX.Element; props: P; state: S; context: any; diff --git a/react/react.d.ts b/react/react.d.ts index 5fbad0d22..0ed794f1e 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -136,6 +136,7 @@ declare module __React { setState(f: (prevState: S, props: P) => S, callback?: () => any): void; setState(state: S, callback?: () => any): void; forceUpdate(): void; + render(): JSX.Element; props: P; state: S; context: any;