Oct '25 (edited) • Code Review
React Challenge 5
Edit: I have updated the code so the button text is different depending on type of sorting. I noticed on older posts that there were 3 different buttons for each.Please review :)
Just done this. I am not sure if it's better to have the button for sorting in a separate component as I did here or just add it on the the Counter component and then use handleSort on the sorting button..?
What does everyone think? I did it this way because I thought that I do the sorting on all of the counters whilst the incrementing is on each counter... but I am not sure if this is the right approach :D
5
6 comments
Monica Ular
5
React Challenge 5
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
Powered by