DevAnsar / fire-here

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About FireHere component

Simple component to execute commands when scrolling the page to the location of the component

Step 1

Use the npm i fire-here to install

Step 2

import {FireHere} from 'fire-here'

Step 3

To use it you need to write inside JSX
<FireHere id='etc' onHereFn={doShomthingFunction} />

  • id : Unique ID value must be assigned to each component
  • onHereFn : Function or executable code

Live Demo

View a live sample in the codesandbox

About


Languages

Language:JavaScript 55.1%Language:HTML 32.2%Language:CSS 12.6%