Skip to content
Collection of React Hooks used by Charlie Tango
TypeScript JavaScript HTML
Branch: master
Clone or download
thebuilder Publish
 - @charlietango/hooks@1.7.5
 - @charlietango/use-focus-trap@1.2.5
Latest commit 8629ccb Oct 3, 2019

README.md

Charlie Tango Hooks

Version Badge Build Status dependency status dev dependency status License Greenkeeper badge styled with prettier

Collection of React Hooks used by Charlie Tango.

Storybook Demo: https://ct-hooks.netlify.com

Installation

Install using Yarn:

yarn add @charlietango/hooks

or NPM:

npm install @charlietango/hooks --save

The Hooks

Individual hooks

All of our Hooks are published into their own NPM module, so you can pick and choose exactly the ones you need.

To use the Hook, import it from the package you installed, like:

import useMedia from "@charlietango/use-media";

@charlietango/hooks

The @charlietango/hooks module collects all of the individual modules into a single dependency. The module is optimized for tree shaking, so you application should only include the dependencies you actually use.

import { useMedia } from "@charlietango/hooks";

Third Party Hooks

The @charlietango/hooks collection also includes the Hook from these libraries:

You can’t perform that action at this time.