20
ReactJSでフォームデータを取得する
私のrender関数には、次のような単純なフォームがあります。 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 ? } handleLogin: function() { ... }アクセスEmailとPasswordフィールドには何を書けばよいですか?