1.0.1 • Published 6 years ago

react-skip-first-effect v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.0

6 years ago