React dynamic list of goods

Task

Load the goods and show them on the page

  1. Create a component GoodsList accepting an array of goods and rendering them inside a <ul>
  2. Show good.name using a good.color(for example style={{ color: 'red' }})
  3. Render 3 buttons loading the goods from server and showing them in the GoodsList:
    • Load All goods showing all the received goods
    • Load 5 first goods showing 5 first goods after sorting them by name
    • Load red goods containing only red goods
  4. There should be only one GoodsList showing different goods basing on the last clicked button
  5. There should be a new request to the server on each button click