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

0.2.0 • Public • Published

Atomic Hooks

A Set of React Hooks for Atomic Jolt

Installation

npm install --save @atomicjolt/hooks
yarn add @atomicjolt/hooks

Documentation

Docs can be found here

Usage

import { useBool } from '@atomicjolt/hooks';

const Component = () => {
  const [bool, toggle] = useBool(false);

  return (
    <div>
      <button onClick={toggle}>Toggle</button>
      <p>Bool is {bool}</p>
    </div>
  );
};

Dependencies (0)

    Dev Dependencies (17)

    Package Sidebar

    Install

    npm i @atomicjolt/hooks

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    21.8 kB

    Total Files

    28

    Last publish

    Collaborators

    • rykerblunck.atomicjolt
    • seanrcollings.aj
    • jbasdf
    • mattpetro