react-skip-first-effect
v1.0.1
Published
Simple react effect hook which skip the initial rendering
Downloads
4
Readme
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
}