I wnat to add hover on every render row and when hover then download button will be show.
Asked
Active
Viewed 139 times
2
-
did you try [this](https://stackoverflow.com/questions/32125708/how-can-i-access-a-hover-state-in-reactjs)? You can make the button active with class. – Kaneki21 Sep 17 '22 at 05:59
1 Answers
0
Do it with css like
.row-with-download:hover button {
display: block;
}
or like
const [isShown, setIsShown] = useState(false);
<Row onMouseEnter={() => setIsShown(true)}
onMouseLeave={() => setIsShown(false)}>
{isShown && <button/>}

Емил Цоков
- 604
- 8
- 18