Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/singhtal/update-react-component


https://github.com/singhtal/update-react-component

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# update-react-component

Sometimes you need to force re-render on function based component. This is a simple custom hook to do force re-render.

Note: Custom hooks cannot be called inside callbacks.

### Usage

```js
import {useForceUpdate} from 'update-react-component';
```

```js
useForceUpdate()
```