Skip to content

hooks/dom

Here are all DOM hooks.

Use @zl-asica/react/hooks for all hooks.

Example

tsx
import { useIsTop } from '@zl-asica/react/hooks'

const App = () => {
  const isTop = useIsTop()

  return (
    <div>{isTop ? 'Top' : 'Not Top'}</div>
  )
}

Variables

Functions

Released under the MIT License.