January 2020
Intermediate to advanced
530 pages
11h 11m
English
The BankLogin.js component is pretty standard. It renders a screen with three buttons that indicate the three user roles defined earlier. These are the Buyer, the Seller, and the Bank. On clicking on the button, the relevant user is logged in, as follows:
Let's look at how the Banklogin.js component renders the login screen:
<div className="column has-text-centered"> Login as: </div> <div className="column has-text-centered"> <span className="button is-medium is-warning" onClick={() => props.BuyerSessionView()}> Buyer </span ...Read now
Unlock full access