@posisung/use-scroll

1.0.2 • Public • Published

@posisung/use-scroll

x,y의 좌표값을 쉽게 구해주는 커스텀 훅

Installation

npm

npm i @posisung/use-scroll

Usage

import React from "react";
import useScroll from "@posisung/use-scroll";

function App() {
  const { currentX, currentY } = useScroll();
  return (
    <h1>
      We are in: {currentX} / {currentY}
    </h1>
  );
}

Readme

Keywords

Package Sidebar

Install

npm i @posisung/use-scroll

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.46 kB

Total Files

4

Last publish

Collaborators

  • heroyooi