mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Blog post for React 19.2 (#8028)
* wip * feedback and rm canary stuff * tweak * fix json * more canary stuff * fix link * update dates * update meta description * Expand performance track section * adjust linter note * edit perf tracks down * edit perf tracks down more * tweak note * tweak useEffectEvent * formatting * tweaks * ppr * rm canary stuff * fix json * fix json * tweaks * linter note * nit * nit * link * nit * ppr * missing await * add lint v6 * fix link --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
---
|
||||
title: component-hook-factories
|
||||
version: rc
|
||||
---
|
||||
|
||||
<Intro>
|
||||
@@ -9,13 +8,11 @@ Validates against higher order functions defining nested components or hooks. Co
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates the compiler [configuration options](/reference/react-compiler/configu
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates usage of Error Boundaries instead of try/catch for errors in child com
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates configuration of [gating mode](/reference/react-compiler/gating).
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against assignment/mutation of globals during render, part of ensuring
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against mutating props, state, and other values that [are immutable](/
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against usage of libraries which are incompatible with memoization (ma
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
<Note>
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates that existing manual memoization is preserved by the compiler. React C
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates that [components/hooks are pure](/reference/rules/components-and-hooks
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates correct usage of refs, not reading/writing during render. See the "pit
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against calling setState synchronously in an effect, which can lead to
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against unconditionally setting state during render, which can trigger
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates that components are static, not recreated every render. Components tha
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates against syntax that React Compiler does not support. If you need to, y
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
@@ -9,13 +9,11 @@ Validates that the `useMemo` hook is used with a return value. See [`useMemo` do
|
||||
|
||||
</Intro>
|
||||
|
||||
<RC>
|
||||
<Note>
|
||||
|
||||
This rule is available in the RC version of `eslint-plugin-react-hooks`.
|
||||
This rule is available in `eslint-plugin-react-hooks` v6.
|
||||
|
||||
You can try it by upgrading the lint plugin [to the most recent RC version](/learn/react-compiler/installation#eslint-integration).
|
||||
|
||||
</RC>
|
||||
</Note>
|
||||
|
||||
## Rule Details {/*rule-details*/}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user