Coder Social home page Coder Social logo

react-forms's Introduction

Image description

ProGrad Lab | REACT - FORMS

Learning Goals

In this exercise, the goal is to learn forms in react:

  • forms

Getting started

  1. Fork this repo
  2. Clone this repo

Whenever you create a first significant change, you should make your first commit.

  1. 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.

Instructions

In this lab we will try to work with forms. You can see the below output for reference.

Screenshot Screenshot Screenshot Screenshot

PROGRESSION 1 | FORM COMPONENT

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.

Screenshot.

Personal details consists of the following.

  • firstName
  • lastName
  • email
  • 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

Screenshot.

PROGRESSION 2 | CURRENCY

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 Screenshot.

PROGRESSION 3 | PRINT THE DATA

Display the detail in display component.

Bonus | VALIDATIONS

You can add validations to the form field

Bonus | UI DESIGN

You are free to style the form as per your own creativity.

Submission

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.

Summary

If you managed to do it, good job! ๐Ÿ†

We are proud of you!

Happy Coding ProGrad โค๏ธ!

react-forms's People

Contributors

ashwinrames avatar prograd-org avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.