mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Add PureComponent definition (React 15.3)
Observably, it's identical to a Component, just with a default invisible shouldComponentUpdate.
This commit is contained in:
Vendored
+2
@@ -178,6 +178,8 @@ declare namespace __React {
|
||||
[key: string]: ReactInstance
|
||||
};
|
||||
}
|
||||
|
||||
class PureComponent<P, S> extends Component<P, S> {}
|
||||
|
||||
interface ClassicComponent<P, S> extends Component<P, S> {
|
||||
replaceState(nextState: S, callback?: () => any): void;
|
||||
|
||||
Reference in New Issue
Block a user