0.1.0 • Published 4 years ago

@ghranek/hooks v0.1.0

Weekly downloads
254
License
MIT
Repository
github
Last release
4 years ago

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)")

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago