- Replace
<your_account>
with your Github username in the DEMO LINK - Follow the React task guideline
Load the goods and show them on the page
- Create a component
GoodsList
accepting an array of goods and rendering them inside a<ul>
- Show
good.name
using agood.color
(for examplestyle={{ color: 'red' }}
) - Render 3 buttons loading the goods from server and showing them in the
GoodsList
:Load All goods
showing all the receivedgoods
Load 5 first goods
showing 5 firstgoods
after sorting them by nameLoad red goods
containing onlyred
goods
- There should be only one
GoodsList
showing different goods basing on the last clicked button - There should be a new request to the server on each button click