Implement the ability to reorder the goods with the given buttons.
Here is the working version
Sort alphabetically
button should sort the goods alphabetically.- remove
is-light
class from the button when this order is applied;
- remove
Sort by length
button should sort the goods by length.- remove
is-light
class from the button when this order is applied;
- remove
Reverse
button changes the current order to the opposite one.- it should work together with any sorting;
- remove
is-light
class from the button when goods are reversed; - the second click should show goods in the direct order;
Reset
button should show the goods in the initial order.- it should be visible only if goods are not already in the original order;
- Install Prettier Extention and use this VSCode settings to enable format on save.
- Implement a solution following the React task guideline.
- 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.