Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props: Props): void {
super(props);
this.shouldComponentUpdate = shouldComponentUpdate.bind(this);
this.state = {
view: true,
// HACK: We'll need to handle props and state change better here
source: this.props.cell.get('source'),
};
this.openEditor = this.openEditor.bind(this);
this.editorKeyDown = this.editorKeyDown.bind(this);
this.renderedKeyDown = this.renderedKeyDown.bind(this);
}
constructor(...args) {
super(...args);
this.shouldComponentUpdate = shouldComponentUpdate.bind(this);
}
}