import React from "react"; import cx from "classnames"; import useHover from "../useHover"; import "../../__stories__/general-hooks-stories.scss"; import styles from "./useHover.stories.module.scss"; export default { title: "Hooks/useHover" }; export const Overview = { render: () => { const [hoverRef, isHovered] = useHover(); return (
{isHovered ? "Boom!" : "Hover me"}
); }, name: "Overview" };