File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ React Comiler は多くの React のルールを静的に検証でき、エラ
121
121
コンパイラをインストールする前に、まずコードベースが互換性があるかどうかを確認してください。
122
122
123
123
<TerminalBlock >
124
- npx react-compiler-healthcheck@latest
124
+ npx react-compiler-healthcheck@experimental
125
125
</TerminalBlock >
126
126
127
127
このスクリプトは以下をチェックします。
@@ -143,7 +143,7 @@ Found no usage of incompatible libraries.
143
143
React Compiler は eslint プラグインも提供しています。eslint プラグインはコンパイラとは** 独立して** 使用できるため、コンパイラを使用しなくても eslint プラグインだけを使用できます。
144
144
145
145
<TerminalBlock >
146
- npm install eslint-plugin-react-compiler
146
+ npm install eslint-plugin-react-compiler@experimental
147
147
</TerminalBlock >
148
148
149
149
次に、eslint の設定に以下を追加します。
@@ -203,7 +203,7 @@ export default function App() {
203
203
### Babel {/* usage-with-babel* /}
204
204
205
205
<TerminalBlock >
206
- npm install babel-plugin-react-compiler
206
+ npm install babel-plugin-react-compiler@experimental
207
207
</TerminalBlock >
208
208
209
209
コンパイラには、ビルドパイプラインでコンパイラを実行するために使用できる Babel プラグインが含まれています。
@@ -258,7 +258,7 @@ Next.js には React Compiler を有効にするための実験的な設定が
258
258
- ` babel-plugin-react-compiler ` をインストールする
259
259
260
260
<TerminalBlock >
261
- npm install next@canary babel-plugin-react-compiler
261
+ npm install next@canary babel-plugin-react-compiler@experimental
262
262
</TerminalBlock >
263
263
264
264
次に以下のようにして ` next.config.js ` 内で実験的オプションを設定します。
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ function Tooltip() {
67
67
68
68
* ` useLayoutEffect` 内のコードと、そこでスケジュールされたすべての state 更新は、**ブラウザによる画面の再描画をブロックします**。過度に使用すると、アプリが遅くなります。可能な限り [` useEffect` を使用してください](/reference/react/useEffect)。
69
69
70
+ * If you trigger a state update inside ` useLayoutEffect` , React will execute all remaining Effects immediately including ` useEffect` .
71
+
70
72
---
71
73
72
74
## 使用法 {/*usage*/}
You can’t perform that action at this time.
0 commit comments