Eslint Plugin React Refresh
eslint-plugin-react-refresh
Validate that your components can safely be updated with Fast Refresh
Utilities
eslint
eslint-plugin
react
react-refresh
fast refresh
eslint-plugin-react-refresh
Utilities
javascript
npm
frontend
Stars
337
Weekly
25M
Open issues
7
Bundle
~15 kB
Installation
npm install eslint-plugin-react-refreshCode example
import { useEslintPluginReactRefresh } from "eslint-plugin-react-refresh";
export function Example() {
const value = useEslintPluginReactRefresh();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Arnaud Barré
- 25M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 7 open issues on GitHub