p5.js-web-editor/shared/components/SignupForm/SignupForm.jsx

18 lines
610 B
React
Raw Normal View History

2016-06-10 03:52:04 +00:00
import React from 'react'
class SignupForm extends React.Component {
render() {
const {fields: { username, email, password, confirmPassword }, handleSubmit} = this.props;
return (
<form onSubmit={handleSubmit(this.props.signUpUser.bind(this))}>
<input type="text" placeholder="Username" {...username}/>
<input type="text" placeholder="Email" {...email}/>
<input type="password" placeholder="Password" {...password}/>
<input type="password" placeholder="Confirm Password" {...confirmPassword}/>
<input type="submit" value="Sign Up" />
</form>
)
}
}
export default SignupForm;