0.1.0 • Published 3 years ago

@ghranek/hooks v0.1.0

Weekly downloads
254
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago