poznianski / react_todo-app-loading-todos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Todo App Load Todos

It is the first part of the React Todo App with API. You will implement the final app step by step and use the result of this task in the next tasks.

You are given the markup of the Todo App. Split it into components and implement the functionality saving all the changes to the API.

Here is the working example

❗️❗️❗️
In this working example implemented all 3 parts of the task.
In this task you have to implement only the first part described below.
❗️❗️❗️

General info

You have an implemented simple login form. Enter your email to create a user or find an existing one in the API.

  • tests are NOT implemented yet.
  • load the user todos when the App is loaded;
  • hide everything except the NewTodoField if there are no todos yet;

Error messages

In case of any error show the notification with an appropriate message at the bottom (just remove the hidden class).

  • the notification can be closed with the close button (add the hidden class);
  • automatically hide the notification in 3 seconds;
  • also hide the notification before any next request;
  • use a wrong todos URL to test the error.

Filtering todos

Filter todos by status All / Active / Completed:

  • an active filter link should be hightlighted;
  • don't hide everything if todos are just filtered out.

Instructions

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 66.0%Language:SCSS 27.0%Language:JavaScript 5.7%Language:HTML 1.2%Language:Shell 0.1%