In this exercise, the goal is to learn forms in react:
- forms
- Fork this repo
- Clone this repo
Whenever you create a first significant change, you should make your first commit.
- Follow these guidelines to add, commit and push changes.
In the end of this document, you will find guidelines on how to submit the exercise.
In this lab we will try to work with forms. You can see the below output for reference.
Create a form component and there are two parts in the form component. Personal and Business. When the user select personal. The first three fields should be displayed similar to the output shown here. Note: Please use conditionals in react to switch between Personal and Business.
Personal details consists of the following.
- firstName
- lastName
- phoneNumber
- Country
- IFSC code
- account Number
- Country Id
- city
- postcode
- address
When the user selects the business. Then the followings details has to be got.
- businessName
- emall
- phoneNumber
Create a currency.json and keep a list of currencies. Based on the country selected the currency name should be displayed dynamically. Display the country in the drop down list box.
The data can be stored in an array
.
Display the detail in display component.
You can add validations to the form field
You are free to style the form as per your own creativity.
If you didn't add, commit and push the changes you made, this is the last call. ๐
please share your github links with your Mentors. Your Mentor's will check up your work and provide feedback.
If you managed to do it, good job! ๐
We are proud of you!
Happy Coding ProGrad โค๏ธ!