@sandetechtips/hooks
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

npm downloads npm npm

Features

  • Built for performance.
  • Embraces powers of useEffect from React.
  • Out of the box integration with React version >= 16.8.0
  • Small size and no dependencies

Install

npm install @sandetechtips/hooks

Quickstart

import { useToggle } from '@sandetechtips/hooks';

function App() {
    const [show, setShow] = useToggle();

    return (
        <Fragment>
            <p>{show.toString()}</p>
            <button onClick={toggle}> Toggle </button>
        </Fragment>
    );
}

Contributors

You are welcome to contribute just send a request to me @ sandeshsingh265@gmail.com! [Become a contributor].

Package Sidebar

Install

npm i @sandetechtips/hooks

Weekly Downloads

6

Version

1.1.3

License

ISC

Unpacked Size

44.2 kB

Total Files

35

Last publish

Collaborators

  • sande265