The Registration form

The next form we need to cover is the Registration form. As a reminder, here is how it looks: 

This form will be in the same file as the Sign in form, which was modalwindows.js. The code for the Registration form will be very similar to the code we just covered for the Sign in form. The difference is that the form for Registration has some more fields than the Sign In form, otherwise the code is very similar. Here is the code for the Registration form:

class Registeration extends React.Component{    constructor(props) {        super(props);        this.handleSubmit = this.handleSubmit.bind(this);        this.state = {            errormessage: ''        }; this.handleChange ...

Get Hands-On Full Stack Development with Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.