mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import * as React from 'react';
|
|
import * as shallowCompare from 'react-addons-shallow-compare';
|
|
|
|
export class MyComponent extends React.Component {
|
|
shouldComponentUpdate(nextProps: any, nextState: any, nextContext: any): boolean {
|
|
return shallowCompare(this, nextProps, nextState);
|
|
}
|
|
|
|
render() {
|
|
return <div>empty</div>;
|
|
}
|
|
}
|