scrimba
React Bootcamp Course
Track Hover State
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Track Hover State
AboutCommentsNotes
Track Hover State
Expand for more info
z_challenge.md
run
preview
console
# Challenge

On the Image component, track the hover state

1. Create state boolean for "hovered"
2. When the mouse enters the Image's div, set "hovered" to true
3. When the mouse leaves the Image's div, set "hovered" to false
4. Log "hovered" to the console so you know it's changing successfully.
Console
/
-2:41