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
252k
Weekly
51M
Open issues
1469
Bundle
~15 kB
Installation
npm install react-refreshCode 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
- 51M 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
- 1469 open issues on GitHub