RE

React Refresh

react-refresh

React is a JavaScript library for building user interfaces.

Utilities
react
react-refresh
Utilities
javascript
npm
frontend
open source
ui
library
web
Stars
250k
Weekly
74M
Open issues
1352
Bundle
~15 kB

Installation

npm install react-refresh

Code example

import { useRefresh } from "react-refresh";

export function Example() {
  const value = useRefresh();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by react-bot
  • 74M weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~15 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 1352 open issues on GitHub

FAQs

Alternatives & similar libraries