January 2020
Intermediate to advanced
530 pages
11h 11m
English
The Container.js component holds several other components, toggles a components' display as per state changes, and passes down their props to the components after it receives them from App.js.
The Container.js component mainly renders dependent on the state.role and state.option state variables that are sent to it by App.js. state.role indicates the role of the user (Bank, Buyer merchant, Seller merchant) currently logged in to the application. state.option indicates the option selected by the user (View LC, Create LC, Settle LC).
Based on the option selected, the container renders and toggles between the following components:
Read now
Unlock full access