@swaraj0_0/add-event-listener-hook

1.0.0 • Public • Published

@swaraj0_0/add-event-listener-hook

Will be able to add event listeners and will be able to intercept the event

NPM JavaScript Style Guide

Install

npm install --save @swaraj0_0/add-event-listener-hook

Usage

import React, { Component } from 'react'

import { useAddEventListeners } from '@swaraj0_0/add-event-listener-hook'

const Example = () => {
  const userName = 'SwarajGK';
  const { loading, userData } = useAddEventListeners(userName)
  return (
    <div></div>
  )
}

License

MIT © @SwarajGK


This hook is created using create-react-hook.

Readme

Keywords

none

Package Sidebar

Install

npm i @swaraj0_0/add-event-listener-hook

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

566 kB

Total Files

22

Last publish

Collaborators

  • swaraj0_0