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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.