Skip to content

🤞 A small collection of convenient JavaScript utilities & helpers. Mostly used for React/Next.js/Gatsby projects.

Notifications You must be signed in to change notification settings

estudio-buenasuerte/buena-suerte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buena-suerte

🤞 A small collection of convenient JavaScript utilities & helpers. Mostly used for React/Next.js/Gatsby

Features

  • 🤷 Dunno yet

Installation

npm i buena-suerte

Usage

import { useInterval } from 'buena-suerte'

const [count, setCount] = useState(0);
const [delay, setDelay] = useState(1000);
const [isRunning, toggleIsRunning] = useState(true);

useInterval(
	() => {
		setCount(count + 1);
	},
	isRunning ? delay : null
);

Functions

useInterval

Use Interval to be used in React projects

About

🤞 A small collection of convenient JavaScript utilities & helpers. Mostly used for React/Next.js/Gatsby projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published