Code Monkey home page Code Monkey logo

react_todo-app-loading-todos's Introduction

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

❗️❗️❗️
Please implement ONLY todos loading, errors and filtering.

All the rest will be implemented in the next tasks
❗️❗️❗️

General info

  • register a user by your email here
  • save the received userId in the App and use to load load todos
  • log in to the Demo Page with your email
  • create some todos to see them later in your App
  • load your todos when the App is loaded (put your userId instead of ???);
    https://mate.academy/students-api/todos?userId=???
    
  • hide the list and the footer if there are no todos yet;

The API client is already implemented in the src/utils/fetchClient.ts. Learn it to understand how to interact with the API. If you want to implement it yourself you can delete the fetchClient.

Error messages

In case of any error show the notification with an appropriate message at the bottom

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

Filtering todos

Filter todos by status All / Active / Completed:

  • all is the default value;
  • use the selected class to highlight a selected link;

Instructions

react_todo-app-loading-todos's People

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.