Now Paging Maciej

    @am-hooks/use-click

    1.0.0 • Public • Published

    useClick

    클릭 이벤트

    Installation

    yarn

    yarn add @am-hooks/use-click

    npm

    npm i @am-hooks/use-click

    Usage

    import React from "react";
    import useClick from "@am-hooks/use-click";
    
    const App = () => {
      const sayHello = () => console.log("클릭");
      const title = useClick(sayHello);
    
      return <h1 ref={title}>HELLO</h1>;
    }



    Install

    npm i @am-hooks/use-click

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.62 kB

    Total Files

    4

    Last publish

    Collaborators

    • wam-6577