Closed Adrian-Moldovan closed 4 months ago
[x] Use CSS classes to define the energy level.
high-energy
mid-energy
low-energy
[x] Refactor the code determining the actual color (avoid nested if-else structures containing return statements)
[x] The player component should receive the player name and the player energy from the App.jsx component
[x] CSS classes name should be written using kebab-case
Code review
Player should have
Implement the player component
Re-render the component once the energy value is changed