score:2

if(user.name!==undefined && user.email!==undefined){
    this.setState({
        name: user.name,
        email: undefined,
    })
}

score:3

<input type="email" className="form-control" id="email" placeholder="Enter email" defaultValue={this.state.email} />

Related Query

More Query from same tag