Documentation
Quick start

Quick start

Follow the steps below to get started with Kickass Coderz React.

Project setup

Installation

Add package to your project dependencies:

npm install @kickass-coderz/react

Usage

No additional setup is required, just import things you want and start using them.

import { useRef } from 'react'
import { useEventListener } from '@kickass-coderz/react'
 
const SomeComponent = () => {
    const ref = useRef()
 
    useEventListener(ref, 'click', event => {
        // do something
    })
 
    return <div ref={ref}>Kickass</div>
}