From 1837f78bed57e89c85e00eaf52172bec50a4efcf Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Sat, 30 Jul 2016 21:42:25 +0900 Subject: [PATCH] Add PureComponent definition (React 15.3) Observably, it's identical to a Component, just with a default invisible shouldComponentUpdate. --- react/react.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react/react.d.ts b/react/react.d.ts index 57ef054943..a6bdbdfca6 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -178,6 +178,8 @@ declare namespace __React { [key: string]: ReactInstance }; } + + class PureComponent extends Component {} interface ClassicComponent extends Component { replaceState(nextState: S, callback?: () => any): void;