I have a LoginForm component. I want to check before submit, that both loginName and password is set. I tried with this code (a lot of stuff omitte
loginName
password
For those who is using Babel, you can use bind operator with transform-function-bind plugin:
onSubmit={::this.submit}
which is a syntactic sugar for:
onSubmit={this.submit.bind(this)}