Back to problems

Star Rating Component

Object-Oriented Programming · SoFi · Medium

Requirements Create a five-star rating widget using React and JavaScript. While the pointer moves over a star, show the rating preview that corresponds to its location. Remove the preview when the pointer exits the star area. A click must commit the current rating so it remains selected. A double-click must reset the rating to zero. Ratings may be expressed in half-star increments. Clicking the left side of a star assigns that star a value of 0.5; clicking its right side…

Checking your access…