import * as React from 'react' ; export class OverrideTextArea extends React . Component < any , any > { public state : { value : string ; } ; constructor ( props ) { super ( props ) ; this . state = { value : props . value || '' } ; this . handleChange = this . handleChange . bind ( this ) ; } public handleChange ( event ) { this . setState ( { value : event . target . value } ) ; } public componentWillReceiveProps ( nextProps ) { this . setState ( { value : nextProps . value } ) ; } public render ( ) { return ( < textarea placeholder = { this . props . placeholder || '' } value = { this . state . value } onChange = { this . handleChange } onBlur = { this . props . onBlur } / > ) ; } }