Code Monkey home page Code Monkey logo

new-xstate-form's Introduction

This is a Multistep Form as per the requirements.

Assignment: Build a multi-step form using React and XState.

The form should consist of three steps:

● User Information: The user should input their name and email.
● Survey: A basic survey with multiple-choice questions.
● Confirmation: A confirmation page that shows the user's input and allows them to confirm for submission or go back to previous steps and make changes.

Requirements:

● React: You should build this form as a single-page application using React and Next.js 13.
● XState: You should manage the form's state using XState. The state machine should handle moving between steps, storing and updating form data.
● Validation: The form should have validation on the input fields. For example, if a user does not input their name or email, or if the email is not in a valid format, the form should display an error message.
● Styling: The form should be styled using CSS. The look and feel of the form is up to you.
● Testing: Write tests for the different states and transitions of the form.

new-xstate-form's People

Contributors

sayan9661 avatar

Watchers

 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.