January 2020
Intermediate to advanced
530 pages
11h 11m
English
The AppLogin component renders a login screen with two buttons—Log in as Acme Inc. and Log in as Apex Corp. On clicking a button, the user is logged in to the app with the customer they select.
At the code level, the component calls the setAccount() method to set the bank customer account as Acme Inc or Apex Corp. The component passes the value 1 as an input parameter to the setAccount() method if the customer selected is Acme Inc. For Apex Corp, it sends the value 2, as shown in the following code block:
return ( <div className="panel-block is-paddingless is-12" > <div className="column is-12" id="token-lists"> <div className="column has-text-centered"> <span className="button is-medium is-success" onClick={() ...Read now
Unlock full access