You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate that your components can safely be updated with fast refresh.
3
+
Validate that your components can safely be updated with Fast Refresh.
4
4
5
5
## Explainer
6
6
7
-
"Fast refresh", also known as "hot reloading", is a feature in many modern bundlers.
7
+
"Fast Refresh", also known as "hot reloading", is a feature in many modern bundlers.
8
8
If you update some React component(s) on disk, then the bundler will know to update only the impacted parts of your page -- without a full page reload.
9
9
10
10
`eslint-plugin-react-refresh` enforces that your components are structured in a way that integrations such as [react-refresh](https://www.npmjs.com/package/react-refresh) expect.
@@ -28,7 +28,33 @@ npm i -D eslint-plugin-react-refresh
28
28
29
29
## Usage
30
30
31
-
This plugin provides a single rule, `react-refresh/only-export-components`.
31
+
This plugin provides a single rule, `react-refresh/only-export-components`. There are multiple ways to enable it.
0 commit comments