Coder Social home page Coder Social logo

react-form-demo's Introduction

React form demo

This is a simple 2-step mobile survey form for a developer test at Mubaloo.

You can view a static version on GitHub Pages. Note that the form submission has been rigged to always "succeed" even though there is no server.

Setup

git clone https://github.com/davidxmoody/react-form-demo.git
cd react-form-demo
npm i
npm start
# Go to http://localhost:8888

Tech used

  • React
  • create-react-app for building and hot reloading in dev (using Webpack under the hood)
  • Sass
  • Simple Node.js (v6+) Express backend

Weaknesses

  • The styling is very plain, I decided to focus on functionality, animation and usability instead of prettiness
  • No real validation, all fields are optional
  • Sass compilation is done as a separate step which litters gitignored .css files around (could be done with a webpack sass loader instead)
  • There is no "back" button to go back to the first stage of the form
  • Not tested in any browsers other than Chrome and Chrome for Android
  • Keyboard controls aren't great (pressing enter does nothing and you can accidentally tab into fields on the next step and break it)
  • I also just noticed that the "I read the instructions" comment gets removed when the HTML is minified (it's in the source)

react-form-demo's People

Contributors

davidxmoody avatar

Watchers

James Cloos 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.