[](https://www.npmjs.com/package/force2update?activeTab=versions) [](https://www.npm
npm install force2update


React hooks for force updating components.
Force update from anywhere to those using a useForceUpdate hook with optional payload.
bashnpm i force2update
`Usage example
$3
`jsx
import { useForceUpdate, useForceUpdateField } from 'force2update'function App() {
const forceUpdate = useForceUpdate()
let onUpdate = () => {
// apply non-reactive changes.
nonReactive.something = 'something updated'
forceUpdate()
}
return (
)
}
``