1.4.2 • Published 2 years ago

@jgordy24/react-hooks-lib v1.4.2

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

@jgordy24/react-hooks-lib

"A package of commonly used react hooks"

Build

Install

npm install --save @jgordy24/react-hooks-lib

Usage

useHover

import React from 'react';
import { useHover } from '@jgordy24/react-hooks-lib';

const App = () => {
  const [hoverRef, isHovered] = useHover();

  return (
    <div>
      <button
        ref={hoverRef}
        style={{
          backgroundColor: isHovered ? '#424242' : '#121212',
          color: '#FFF',
        }}
      >
        My Button
      </button>
    </div>
  )
}
more examples coming soon

License

MIT © JGordy


This hook is created using create-react-hook.

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago