As discussed in the last session, this week, we are going to start with ReactJS and incrementally build our portals.
React JS is a powerful JavaScript library used for building dynamic and interactive websites. It offers several advantages, including the ability to create applications on a single page and the reusability of website components. By dividing a website into reusable “components,” React JS enables developers to build websites faster and more efficiently. This eliminates the need for repetitive code, such as copying and pasting for creating a navbar or a list. React JS utilizes JSX, a syntax extension of JavaScript, which provides a declarative way to manage the UI state. Instead of manually manipulating each piece of content that needs to change based on user actions, React JS allows developers to describe these states and efficiently renders them. This makes the development process more organized and maintainable.
JSX is a syntax extension of JavaScript that is commonly used in React. It allows us to write HTML elements in JavaScript and seamlessly place them in the DOM without the need for createElement() and appendChild() methods. When JSX expressions are compiled, they are transformed into regular JavaScript function calls, making it easier to understand and work with. By leveraging JSX, developers can create dynamic and interactive user interfaces with ease.
ReactJS is made of components. The State of a component is an object that holds some information that may change with time or user interaction. State can be used with React Hooks like useState. They are mutable and React re-renders the component whenever its state changes, manipulating the DOM accordingly. (Conditional rendering!)
Resources :
As introduced last week. The below resources are kept for your ready reference!
On popular demand, and with interest of time, we are providing to you a sample template of how the Cashier Portal should look.
Before starting, make sure you code up (probably structure your code better!) your login and sign up pages in ReactJS. It won’t be too much of a hassle!
sample bill essentials template
in the sample template
file for clarity on what all should be included.Before you start integrating with APIs, make sure your frontend structure is ready!
For those who are doing both Frontend and Backend :
For those doing only Frontend :
react-share
.