Giter Site home page Giter Site logo

react-signup-form's Introduction

Lab: Sign up Form

Forms are something you will frequently use in React.js.

This lab uses what students have learned so far to create a sign up form using reactstrap. Alternatively, you may use another UI framework like Material UI.

In the starter code, you'll find a create-react-app project with reactstrap installed! If you'd like to use something other than reactstrap, simply install that one instead.

NOTE: reactstrap is different from react-bootstrap, make sure you're looking at the right docs!


Prerequisites

Students should be familiar with:

  • React and React components
  • File tree and component structure
  • State
  • Props
  • Unidirectional data flow
  • Using documentation

Instructions

  1. Fork and Clone this repo
  2. npm install (Hint! Same as npm i!)
  3. npm start
  4. Complete requirements and do bonus additions!
  5. Make a pull request to submit your work.

Requirements

Build a sign up form using create-react-app and a UI Framework of your choice to collect the name, email, picture, and hidden password for a user. console.log what the user's inputs when they submit the form.

You should have:

  • Three text input fields: Name, Email, Password
  • File upload input
  • One Button to Submit input
  • Submit should have a listener event that triggers a function and console.logs the user's input and the blob for the image.

NOTE: This form doesn't actually do anything. It is for styling practice.

Bonus

  • Add custom styles and a "logo" to personalize the site.
  • Show custom error messages for incomplete fields
  • Show a success alert when the form is submitted
  • Implement icons to add to your from React Font Awesome 5
  • Put your form into a modal
  • Validate that the email is a valid email address

Hints!

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

react-signup-form's People

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.