Sudoo-React-Hooks

Continuous Integration codecov npm version downloads

React Hooks

Install

yarn add @sudoo/react-hooks
# Or
npm install @sudoo/react-hooks --save

Usage

import * as React from "react";
import { OpenStates, useOpen } from "@sudoo/react-hooks";

const Component: React.FC = () => {

    const open: OpenStates = useOpen();
}