import InlineEdit from '../index'; import React from 'react'; import ReactDOM from 'react-dom'; class MyParentComponent extends React.Component { constructor(props){ super(props); this.dataChanged = this.dataChanged.bind(this); this.state = { message: 'ReactInline demo' } } dataChanged(data) { // data = { description: "New validated text comes here" } // Update your model from here console.log(data) this.setState({...data}) } customValidateText(text) { return (text.length > 0 && text.length < 64); } render() { return (