Hi guys,
This is for a React project, but it's more of a JS question I guess.
I have to create a star rating component.
I have a prop:value pair "rating": "5", (rating is out of 5), and access to 2 PNGs: a pink star and a grey star.
Must look like this
I'm quite puzzled by the approach to take, especially when it comes to the mixture of pink and grey stars for ratings < 5.
Any pointers please?
Cheers