# @hmans/use-rerender

> A hook providing a function that will cause the component to re-render, no questions asked.

Latest version **0.0.2** (published 2022-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hmans/use-rerender
pnpm add @hmans/use-rerender
yarn add @hmans/use-rerender
bun add @hmans/use-rerender
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-08-18 |
| First published | 2022-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hendrik Mans |
| Maintainers | hendrik.mans |

## Links

- npm: https://www.npmjs.com/package/@hmans/use-rerender
- npm.io page: https://npm.io/package/@hmans/use-rerender

## Dependencies (1)

- [@hmans/use-version](https://npm.io/package/@hmans/use-version.md) ^0.0.2

## Recent versions

- 0.0.2 (latest) — 2022-08-18

## README

# @hmans/use-rerender

## Summary

`useRerender` returns a function that, when called, will cause the component to re-render, no questions asked.

```tsx
import { useRerender } from "@hmans/use-rerender"

const MyComponent = () => {
  const rerender = useRerender()

  useEffect(() => {
    console.log("This component was rendered!")
  })

  return (
    <div>
      <button onClick={rerender}>Bump</button>
    </div>
  )
}
```

---
_Source: https://npm.io/package/@hmans/use-rerender · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
