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

0.1.0 • Public • Published

React Custom Hooks

yarn add @ghranek/hooks

Lifecycle Hooks

useDidMount(function)

Similar to componentDidMount in class component.

useWillUnmount(function)

Similar to componentWillUnmount in class component.

useDidUpdate(function, [dependencies])

Similar to componentDidUpdate in class component.

Client Hooks

const isScreen = useMediaQuery("(max-width: 768px)")

Readme

Keywords

none

Package Sidebar

Install

npm i @ghranek/hooks

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

23 kB

Total Files

18

Last publish

Collaborators

  • ghranek