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

0.1.0 • Public • Published

Atomic Hooks

A Set of React Hooks for Atomic Jolt

Installation

npm install --save @atomic-jolt/hooks
yarn add @atomic-jolt/hooks

Usage

import { useBool } from '@atomic-jolt/hooks';

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @atomicjolt/hooks

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

25.1 kB

Total Files

31

Last publish

Collaborators

  • nickbenoit
  • seanrcollings.aj
  • jbasdf
  • mattpetro