cd react-app
Install semantic-ui: npm install semantic-ui-react semantic-ui-css
Start json server: npm install -g json-server
Then: json-server --watch db.json
Start your react app: npm install
Then: npm start
-
The form should post a new player and render a PlayerCard.
-
Clicking the thumbs up icon should add a like to the PlayerCard and patch the player's likes in the backend.
Christian Pulisic:
Position: Forward
Team: Chelsea
Image: https://resources.premierleague.com/premierleague/photos/players/250x250/p176413.png
Mohammed Salah:
Position: Forward
Team: Liverpool
Image: https://resources.premierleague.com/premierleague/photos/players/250x250/p118748.png