Giter Club home page Giter Club logo

multi-step-react-form's Introduction

roy

Multi Section React Form

Lightweight example of managing form state across multiple screens

๐Ÿ“ฆ Project Setup

  1. Install dependencies

    Use the yarn package manager to install dependencies

    yarn
  2. Run development server

    Start the development server with the following command:

    yarn start
  3. Visit local environment

    Navigate to http://localhost:3000 to see the app in action

๐Ÿค– Tech Stack

Trying to keep things light, the app only has a few core dependencies/concepts

  • React - ui rendering
  • Create React App - to quickly scaffold React for the purposes of the exercise
  • Typescript - static type checking
  • Eslint/Prettier - code linting and automatic IDE formatting
  • Styled-Components - to allow for CSS-in-JS component composition
  • Jest - test task runner
  • react-test-renderer - a lightweight React package for testing
  • Github Actions - to run tests in a CI environment

Things that I tried to avoid, but may consider adding in the future

  • Formik (with yup) / React Final Form - I've found these packages to add bloat in the past, so I tried to keep all the validation logic to be custom through a hook called use-text-input-state.
  • React Router - It was unclear from the exercise description about whether form pages can be deep-linked into, such as going straight into /privacy and having the pre-saved fields re-hydrate the form. If this was the case, it would be good to implement client-side routing.

Screenshot

image

multi-step-react-form's People

Contributors

chanonroy avatar

Watchers

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