typescript-hooks-react

1.1.1 • Public • Published

TypeScript Hooks React · PRs Welcome Up to Date

Typescript-hooks-react is a Typescript based library for Several Hooks.

  • Easy to Configure: React makes it painless to create interactive UIs. Hooks included are easy to use and configure.
  • Meets Many Usecases: Hooks included are well versed and suited to a large set of use cases.
  • Include Once and use Anywhere: These hooks can be use anywhere in your project and hence keeps the project simple.

Installation

npm i typescript-hooks-react --save

Documentation

🛠️ Under Construction. 😶‍🌫️

Examples

We have several examples. Here is the first one to get you started:

import { useKeyPress } from typescript-hooks-react
const shiftPressed = useKeyPress('Shift');

useEffect(() => {
    dispatch({ type: 'setShiftPressed', payload: shiftPressed });
  }, [shiftPressed]);

When Shift ⌨️` is pressed. It dispatches a state change event and the change is updated across the application.

Contributing

Please follow strict Writing good typescript suggestions. For example.

Push the code and create a new PR.

Cheers 🍻

Good First Issues

Please Feel Free to report all the bugs :bugs: found whatsoever.

Thanks.

License

No License.

Readme

Keywords

none

Package Sidebar

Install

npm i typescript-hooks-react

Weekly Downloads

6

Version

1.1.1

License

ISC

Unpacked Size

36.5 kB

Total Files

27

Last publish

Collaborators

  • spanion
  • iamshashi17