Bank project Cont.
For this week, we going to continue on our bank project from last week by the following goals
Goals
- Create a main page that contain a navbar menu for redirect to home page and history page.
- Routing between home page, history page, sign up page and
historysign in page - Create a sign in and sign-up page.
- Validate data on sign in and sign-up page.
Materials will provide via this link:
https://drive.google.com/file/d/1BkYr31E7RGz89jC0OOQOK_ryosVUtmaq/view?usp=sharing
You need to use your bank project that you've done last week as a base.
In case that you can not catch up with last week content, here the bank project base code from last week:
https://drive.google.com/file/d/1MWPrXiK3LKFPxaEb1VgrpMguG9oNrmPd/view?usp=sharing
Install packages
React router
npm i react-router-dom
(Optional) Yup and react hook formĀ
npm install react-hook-form @hookform/resolvers yup
1. main.jsx
Guideline
The path "/" should render MainPage.jsx (Parent), " " should render HomePage.jsx and "history" should render HistoryPage.jsx
2. Main page
Guideline
Result
2.3. Sign in page
result:Guideline
Result
3.4. Sign up page
result:Result



