Code Monkey home page Code Monkey logo

react-password-validator's Introduction

React Password Validator

Recreate a password validator in React. Your final product should function similarly to this deployed version of the component.

Getting Started

  • Fork and clone this repo
  • Once you have the app locally, install necessary dependencies with $ npm install
  • Start the development server locally with $ npm start, then visit localhost:3000 in the browser to view app

Instructions

Take the existing markup rendered from the Validator component in src/Validator.js and change into a fully functioning component. This means that you only have to add functionality -- not markup or styling -- to the existing code!

Getting Started

For this exercise, don't be concerned about the distinction between container and presentational components.

  1. Add your form inputs in Validator.js.
  2. Add a constructor method and initialize state. Your state should include email, password, passwordConfirm, and valid properties.
    this.state = {
      email: '',
      password: '',
      passwordConfirm: '',
      valid: true
    }
  1. Add methods for handling inputs for password and password confirm, and checking that the passwords match. Be sure to update state in these methods using .setState
  2. Bind the methods in the constructor.
  3. Display a message if the user's inputs are valid.

Resources

react-password-validator's People

Contributors

amaseda avatar nolds9 avatar superbuggy avatar

Watchers

 avatar  avatar  avatar  avatar

react-password-validator's Issues

Aaron Andrews

Comfort: 4
completeness: 5(no bonus)

Was fairly simple to create but we had some hiccups along the way. We needed a little help from Adrian to get the full solution working. Overall good lab though because it gave us choices as to what we do which is always fun.

https://github.com/andrews94/react-password-validator

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.