update-react-component

1.0.2 • Public • Published

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

import {useForceUpdate} from 'update-react-component';
useForceUpdate()

Readme

Keywords

none

Package Sidebar

Install

npm i update-react-component

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

10.3 kB

Total Files

14

Last publish

Collaborators

  • talsingh