mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
13 lines
367 B
TypeScript
13 lines
367 B
TypeScript
import React = require('react');
|
|
import shallowCompare = require('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>;
|
|
}
|
|
}
|