2

I wnat to add hover on every render row and when hover then download button will be show.

enter image description here

  • 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 Answers1

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/>}