Giter Site home page Giter Site logo

react_add-todo-form's Introduction

React add TODO form

Task

Implement ability to add TODOs to the TodoList implemented in Static list of todos

  1. Create App component storing todos array and displaying it with TodoList
  2. Create NewTodo component with a form to add new TODOs
    • please add labels and placeholders where it is needed
    • each TODO should have a title and userId selected from a list of given users (./src/api/users.js)
    • show user names in <select>
    • the TODO should be added to the list after clicking Add button
    • App should add integer id to each TODO (starting from 1)
  3. Clear the form after adding a TODO
  4. Add validation to the form
    • add an empty option Choose a user to the users select
    • before creating a user check if a user was selected, if not show an error next to select (Please choose a user)
    • if a title is empty show an error (Please enter the title)
    • errors should appear only after pressing Add button
  5. Hide an error immediately when you edit a field with an error
  6. (* Optional) Limit characters displayed in the title field. Allow entering spaces and alphanumeric (\w) characters.

react_add-todo-form's People

Contributors

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