Implement the ability to reorder the goods with the given buttons.
Here is the working version
Sort alphabeticallybutton should sort the goods alphabetically.- remove
is-lightclass from the button when this order is applied;
- remove
Sort by lengthbutton should sort the goods by length.- remove
is-lightclass from the button when this order is applied;
- remove
Reversebutton changes the current order to the opposite one.- it should work together with any sorting;
- remove
is-lightclass from the button when goods are reversed; - the second click should show goods in the direct order;
Resetbutton 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 testto ensure your solution is correct. - Replace
<your_account>with your Github username in the DEMO LINK and add it to the PR description.