react onsubmit data in react js

Solutions on MaxInterview for react onsubmit data in react js by the best coders in the world

showing results for - "react onsubmit data in react js"
César
15 Jun 2019
1render : function() {
2      return (
3        <form>
4          <input type="text" name="email" placeholder="Email" />
5          <input type="password" name="password" placeholder="Password" />
6          <button type="button" onClick={this.handleLogin}>Login</button>
7        </form>
8      );
9    },
10handleLogin: function() {
11   //How to access email and password here ?
12}
13