diff --git a/snippets/StarRating.md b/snippets/StarRating.md index 573467fb5..43d9afa47 100644 --- a/snippets/StarRating.md +++ b/snippets/StarRating.md @@ -3,7 +3,7 @@ Renders a star rating component. * Define a component, called `Star` that will render each individual star with the appropriate appearance, based on the parent component's state. -* In the `StarRating` component, use the `React.setState()` hook to define the `rating` and `selection` state variables with the initial values of `props.rating` (or `0` if invalid or not supplied) and `0`. +* In the `StarRating` component, use the `React.useState()` hook to define the `rating` and `selection` state variables with the initial values of `props.rating` (or `0` if invalid or not supplied) and `0`. * Create a method, `hoverOver`, that updates `selected` and `rating` according to the provided `event`. * Create a `