1.0.1 • Published 5 years ago

react-skip-first-effect v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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
}
1.0.1

5 years ago

1.0.0

5 years ago