I had a condition if the two textfield are the same it will proceed, if not then the button is disabled. I know I'm doing this wrong.
onSubmit() {
debugger
if (this.state.password == this.state.password2)
alert('same');
else
alert('error');
this.disable;
}