Skip to content

Alex-redman/react_dynamic-list-of-todos

This branch is 17 commits ahead of, 1 commit behind mate-academy/react_dynamic-list-of-todos:refs/heads/develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fb519c9 · Jan 29, 2025
Sep 10, 2024
Mar 18, 2024
Jul 18, 2024
Jan 29, 2025
Jul 2, 2019
Apr 6, 2022
Apr 6, 2022
Jul 18, 2024
Apr 7, 2022
Feb 13, 2024
Feb 13, 2024
Jul 2, 2019
Apr 6, 2022
Apr 6, 2022
Jan 29, 2025
May 11, 2023
Jul 18, 2024
Nov 19, 2024
Nov 19, 2024
Nov 19, 2024
Mar 18, 2024
Jul 18, 2024

Repository files navigation

React dynamic list of TODOs

The goal of this task is to teach you:

  • how to work with a not detailed task description;
  • to learn the existing code before you start;
  • to understand tests and why they fail;
  • to try the working page and implement the same behaviour;

Here is the working page

You are given the markup for the App, TodosList, TodoFilter, TodoModal and Loader components. Load data from the API and show it using the given components.

  1. Load the todos when the App is loaded and show them using TodoList (check the code in the api.ts);
  2. Show the Loader when waiting any data from the server (check the components folder);
  3. Check how the wait function is used in the api.ts to ensure that Loader works as expected;
  4. When the Show button is clicked open the TodoModal with a selected todo;
  5. Don't forget to load user details (replace 1 with the actual userId);
  6. Show the Loader while waiting for the user;
  7. x button should close the modal;
  8. The select should filter todos by the completed status: all, completed and active(not completed) todos;
  9. Use the input in the TodoFilter to filter the todos by title;
    • show the x button when the query is entered;
    • the x button should clear the query and reset the todos;

Instructions

  • Install Prettier Extention and use this VSCode settings to enable format on save.
  • Implement a solution following the React task guideline.
  • Use the React TypeScript cheat sheet.
  • Open one more terminal and run tests with npm test to ensure your solution is correct.
  • Replace <your_account> with your Github username in the DEMO LINK and add it to the PR description.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.5%
  • TypeScript 45.5%
  • HTML 3.4%
  • SCSS 1.6%