April 2018
Intermediate to advanced
298 pages
6h 34m
English
When you first load the UI, you should see the login screen that looks like this:

The following mock users exist as part of the API:
The password isn't actually validated against anything, so leaving it blank or entering gibberish should authenticate any of the preceding users. Let's take a look at the Login component that renders this page:
import React, { Component } from 'react'; import { withStyles } from 'material-ui/styles'; import TextField from 'material-ui/TextField'; import Button from 'material-ui/Button'; import { login } from './api'; const styles = theme => ({ container: { display: 'flex', ...