Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T23:01:50.000Z (over 4 years ago)
- Last Synced: 2023-12-26T13:12:45.946Z (12 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
}
```