fire-here
v1.0.1
Published
Simple component to execute commands when scrolling the page to the location of the component
Downloads
2
Maintainers
Readme
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
