1.0.11 • Published 1 year ago

zhooks v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

hooks

// import { renderHook } from "@testing-library/react-hooks"; // import useOnGlobalEvent from "../index";

// describe("useOnGlobalEvent", () => { // it("should be defined", () => { // expect(useOnGlobalEvent).toBeDefined(); // }); // it("with argument", () => { // const hook = renderHook(() => // useOnGlobalEvent("mousemove", (e) => { // console.log((${e.x}, ${e.y})); // }) // ); // console.log(hook.result.current); // // expect(hook.result.current.width).toEqual(0); // // expect(hook.result.current.height).toEqual(0); // }); // });

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago