Coder Social home page Coder Social logo

react-todos's Introduction

๐Ÿ‘‰ Taken from a coderpad.io template

Running at https://react-todos-woad.vercel.app/

React Todo List

The goal of this exercise is to create a working todo list with persistent data storage.

To start with, we have a styled todo list that supports adding todos. We also have premade styles for completed todo items. Although there's no working mechanism for "completing" a todo.

Requirements

  1. Clicking on a todo item should toggle the "checked" state. โœ…
  2. The todo list state should be saved and loaded from local storage. โœ…
  3. Checked items should sink to the bottom of the list automatically โœ…

Stretch Goals

  1. Allow todos to be deleted. When you hover your mouse over a todo, an X should appear on the far right side, clicking the X should remove it from the list. โœ…

  2. Add hidden timestamps to todos (createdAt, completedAt), these will be used for sorting

  • The active todos should be sorted by createdAt descending โœ…
  • The completed todos should be sorted by completedAt ascending โœ…

Other additions:

  1. Add Prettier โœ…
  2. Unit tests for the sortTodos models function with vitest โœ…

TODO

  1. Add https://zod.dev/ to properly parse what's coming from localStorage โœ…
  2. Update to React 18 โœ…
  3. Add a quick Github Action to run lint / tests โœ…
  4. Add a nice icon for the delete button (taken from https://heroicons.com/) โœ…
  5. Deploy to vercel โœ…

Misc

Todo App Icon by Nesar Ahmad: https://dribbble.com/shots/2873686-Todo-App-Icon

react-todos's People

Contributors

cedric25 avatar

Watchers

 avatar

Forkers

rashi283

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.