I have a textarea
<textarea ref="newText" defaultValue={this.props.children}></textarea>
I need to fetch its value,I tried like this.
this.props.update(this.refs.newText.value,this.props.index);
I also used text instead of value but still it returns undefined.
this.refs.newText.value