parent
							
								
									f2f4b7d732
								
							
						
					
					
						commit
						8aec90b62f
					
				
				 4 changed files with 8287 additions and 8501 deletions
			
			
		@ -0,0 +1,16 @@ | 
				
			||||
import React, { useState } from "react"; | 
				
			||||
import StarRatingComponent from "react-star-rating-component"; | 
				
			||||
 | 
				
			||||
function StarRating2() { | 
				
			||||
  const [rate, setRating] = useState(2); | 
				
			||||
  return ( | 
				
			||||
    <StarRatingComponent | 
				
			||||
      name="rate1" | 
				
			||||
      starCount={5} | 
				
			||||
      value={rate} | 
				
			||||
      onStarHover={(value) => setRating(value)} | 
				
			||||
    /> | 
				
			||||
  ); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
export default StarRating2; | 
				
			||||
					Loading…
					
					
				
		Reference in new issue