Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# react-skip-first-effect
Simple react effect hook which skip the initial rendering

## Usage example
```js

import { useSkipFirstEffect, useSkipFirstLayoutEffect } from 'react-skip-first-effect'

function Component() {
useSkipFirstEffect(() => {
console.log('like that')
}, [])

return null
}
```