fix(StarRating): There is this in hooks
This commit is contained in:
committed by
GitHub
parent
ab10738ba9
commit
45306f4480
@ -29,7 +29,7 @@ function StarRating(props) {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onMouseOut={() => hoverOver(null)}
|
onMouseOut={() => hoverOver(null)}
|
||||||
onClick={(event) => setRating(event.target.getAttribute('star-id') || this.state.rating)}
|
onClick={(event) => setRating(event.target.getAttribute('star-id') || rating)}
|
||||||
onMouseOver={hoverOver}
|
onMouseOver={hoverOver}
|
||||||
>
|
>
|
||||||
{Array.from({ length: 5 }, (v, i) => (
|
{Array.from({ length: 5 }, (v, i) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user