20
Obter dados do formulário no ReactJS
Eu tenho uma forma simples na minha renderfunção, assim: 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 ? } O que devo escrever no meu …