- Initialized the app with
create-react-app
- Added Scoreboard and Player components
- Added Title component and AddPlayerForm stub component
- Mapped render of players array in local state
- Sorting players right before rendering them
- Sorting players by name instead of score
- Allow the user to choose whether to sort by name or score
- Added
incrementScore
callback prop - Added a button to the
Player
component which calls the callback prop - Wrapping
incrementScore
to get the right player's ID - Implemented updating scores of players
- Added reset button
- Added Sass and fun indicator stylings
- Added funky styles to the score increment button
- Added a controlled component (input field) in the AddPlayerForm
- Using the addPlayer callback prop to inform the Scoreboard to add a new player
- Actually adding new players
- Clearing the input field after adding player