📅  最后修改于: 2022-03-11 15:01:41.338000             🧑  作者: Mango
import React, {useState} from "react";
export default function ShowButtonHover() {
const [style, setStyle] = useState({display: 'none'});
return (
Hidden Button in the box. Move mouse in the box
{
setStyle({display: 'block'});
}}
onMouseLeave={e => {
setStyle({display: 'none'})
}}
>
);
}