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

1.13.0 • Public • Published

React Hooks

npm version Build Status

Collection of React Hooks and Utils

Install

npm i @horat1us/react-hooks

Usage

import { useOpenState } from "./src";

export const Component = () => {
    const [isOpen, changeOpenState] = useOpenState();
    return (
        <button className={isOpen ? "is-open" : "is-close"} onClick={changeOpenState}>
            {isOpen ? "Close" : "Open"}
        </button>
    );
};

Contents

<DocumentTitle value="string" />

Contributors

License

MIT

Package Sidebar

Install

npm i @horat1us/react-hooks

Weekly Downloads

11

Version

1.13.0

License

MIT

Unpacked Size

28.6 kB

Total Files

23

Last publish

Collaborators

  • horat1us