globojs
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

GloboJS

globojslogo

Momentarily, this is a React Hooks library that provides a set of hooks to help you build your React applications. Opportunely this library can migrate to a full-fledged UI with hooks library in the future. It's a work in progress, and we are working hard to make it better every day.

Installation

To install the package, run:

npm install globojs
yarn add globojs
pnpm add globojs
bun add globojs

Usage

To use the package, import the package and use the hooks:

import { useClickOutside } from 'globojs';

function App() {
  const ref = useRef();
  useClickOutside(ref, () => {
    console.log('Clicked outside');
  });

  return <div ref={ref}>Click outside me</div>;
}

Demo

See the Demo

Repository

See the Repository to see the source code.

Changelog

See the Changelog to see the latest changes.

The creator

This library was created by Luciano Giraudi. He is a full-stack developer and loves to build things that help others.

Package Sidebar

Install

npm i globojs

Weekly Downloads

17

Version

1.3.3

License

MIT

Unpacked Size

19.8 kB

Total Files

40

Last publish

Collaborators

  • luagir