Skip to content

mytecor/react-skip-first-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-skip-first-effect

Simple react effect hook which skip the initial rendering

Usage example

import { useSkipFirstEffect, useSkipFirstLayoutEffect } from 'react-skip-first-effect'

function Component() {
	useSkipFirstEffect(() => {
		console.log('like that')
	}, [])

	return null
}

About

Simple react effect hook which skip the initial rendering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published