/react_dynamic-list-of-todos

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

React dynamic list of TODOs

See 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;
  2. Show the Loader when waiting any data from the server;
  3. Use the wait function given in the api.ts to check if the 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. x button should close the modal;
  7. The select should filter todos by the completed status: all, completed and active(not completed) todos;
  8. 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;

(*) Advanced tasks (optional)

  1. Add debounce to the search input;
  2. Add Randomize button to the App to show the todos in a random order.

Instructions