Answers for "react onsubmit data in react js"

-2

react onsubmit data in react js

render : function() {
      return (
        <form>
          <input type="text" name="email" placeholder="Email" />
          <input type="password" name="password" placeholder="Password" />
          <button type="button" onClick={this.handleLogin}>Login</button>
        </form>
      );
    },
handleLogin: function() {
   //How to access email and password here ?
}
Posted by: Guest on August-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language