0.2.0 • Published 11 months ago

@atomicjolt/hooks v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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>
  );
};
0.2.0

11 months ago

0.1.0

2 years ago