March 2019
Beginner to intermediate
324 pages
7h 17m
English
Let's start with the Sign in page. As a reminder, here's how it looks:

This is basically a form with two text input fields, a button, a link, and some labels. The first step is to create a React component to host the Sign in form. In the modalwindows.js file, let's create a new component called SignInForm:
class SignInForm extends React.Component{ constructor(){ super(props); }}
Next, we need to create a state object in our component:
class SignInForm extends React.Component{ constructor(){ super(props); this.state = { errormessage = '' }; }}
Our state object currently hosts a single field called errormessage. Whenever the ...
Read now
Unlock full access