Code Monkey home page Code Monkey logo

apr23_pr_react's Introduction

React Product Categories Practice

Here is the working version

You are given markup for a table of products and 3 arrays. Implement as much options below as you can:

  1. Render products in a table with id, name, category and an owner (user).
    • category should render its icon before the title;
    • owner names should be colored with has-text-link for men and has-text-danger for women.
  2. Implement ability to filter products by an owner:
    • If a user is selected it should be highlighter with is-active class;
    • Show only products of a selected user;
    • Select All to see all the products.
  3. Use the input to filter products by name.
    • Show only products having the input value in their name ignoring the case;
    • The x button should appear only when the value is not empty;
    • Clear the value after the x button click.
  4. Show No results message if there are no products matching current criteria
    • Reset All Filters button should clear all the filters.
  5. (*) Allow to select several categories:
    • Add is-info class to selected categories;
    • Show only products of selected categories;
    • All button should clear the selection;
    • Remove is-outlined class from the All button if no categories are selected.
  6. (*) Add ability to sort products by all the columns:
    • a column should have a title with the fa-sort icon by default;
    • the first click sorts products by the given column ascending and use fa-sort-up icon;
    • the second click sorts products in the descending order and use fa-sort-down icon;
    • the third click disables sorting;
    • products are sorted by 1 column at a time (reset the column title when clicking on the other one)

Instructions

  • Fork, clone and run npm i
  • fix the DEMO LINK below (use your github username and the repo name)
  • implement tasks one by one (You can do it in the App.jsx)
  • commit, push and deploy after each task
  • Stop when the time is over (typically 2.5 hours from start)
  • Create pull request and fill the form (Please use the same email that you used on the platform. )

apr23_pr_react's People

Contributors

denys-cheporniuk avatar mhrynko avatar mgrinko avatar ihor-karpyn avatar yuriiholiuk avatar

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.