https://github.com/mytecor/react-skip-first-effect
Simple react effect hook which skip the initial rendering
https://github.com/mytecor/react-skip-first-effect
Last synced: 3 months ago
JSON representation
Simple react effect hook which skip the initial rendering
- Host: GitHub
- URL: https://github.com/mytecor/react-skip-first-effect
- Owner: mytecor
- License: mit
- Created: 2020-06-27T22:57:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T23:01:50.000Z (about 5 years ago)
- Last Synced: 2025-02-12T22:37:44.788Z (5 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-skip-first-effect
Simple react effect hook which skip the initial rendering## Usage example
```jsimport { useSkipFirstEffect, useSkipFirstLayoutEffect } from 'react-skip-first-effect'
function Component() {
useSkipFirstEffect(() => {
console.log('like that')
}, [])return null
}
```