I am using a variable below.
var newInput = { title: this.inputTitle.value, entry: this.inputEntry.value };
This is used by my i
Declare value attribute for input tag (i.e value= {this.state.name}) and if you want to clear this input vale you have to use this.setState({name : ''})
value= {this.state.name}
this.setState({name : ''})
PFB working code for your reference :