Git Product home page Git Product logo

week-12-heypuni's Introduction

Formik Multi-Step Form with Yup Validation

This is for a multi-step form built with Formik, Yup, TypeScript, and React.js. In this form, we will create three steps: Personal Information, Address Information, and Account Information.

This project demonstrates how to create a multi-step form in React using Formik for form management and Yup for form validation. The form is divided into three steps:

Personal Information: Collects personal details such as name, email, and phone number. Address Information: Gathers address details like street address, city, and postal code. Account Information: Asks for account-related information such as username and password.

Features

  1. Multi-step form with clear navigation between steps.
  2. Form state management with Formik.
  3. Real-time validation using Yup schema validation.
  4. TypeScript for type checking and improved developer experience.
  5. Error messages displayed for invalid inputs.
  6. A simple and clean folder structure for easy maintenance.

Folder Structure

The project has a structured folder layout to keep the code organized and maintainable:

src/

  1. components/: Reusable React components.
  2. containers/: High-level components that manage the form's state and logic.
  3. App.tsx: The main application component.
  4. index.tsx: Entry point of the application.
  5. public/: Static assets and HTML template.

Here's the !link to the site!

week-12-heypuni's People

Contributors

heypuni avatar github-classroom[bot] avatar

Watchers

Alvian Zachry Faturrahman 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.