Skip to content

Commit 3c05883

Browse files
committed
wip
1 parent f49d216 commit 3c05883

File tree

1 file changed

+16
-16
lines changed
  • src/content/reference/eslint-plugin-react-hooks/lints

1 file changed

+16
-16
lines changed

src/content/reference/eslint-plugin-react-hooks/lints/gating.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,53 @@ title: gating
44

55
<Intro>
66

7-
Validates configuration of [gating mode](/reference/react-compiler/gating).
7+
[게이팅 모드](/reference/react-compiler/gating)의 설정을 검증합니다.
88

99
</Intro>
1010

11-
## Rule Details {/*rule-details*/}
11+
## 규칙 세부 사항 {/*rule-details*/}
1212

13-
Gating mode lets you gradually adopt React Compiler by marking specific components for optimization. This rule ensures your gating configuration is valid so the compiler knows which components to process.
13+
게이팅 모드는 특정 컴포넌트를 최적화 대상으로 표시하여 React 컴파일러를 점진적으로 도입할 수 있게 해줍니다. 이 규칙은 컴파일러가 어떤 컴포넌트를 처리할지 알 수 있도록 게이팅 설정이 유효한지 확인합니다.
1414

15-
### Invalid {/*invalid*/}
15+
### 잘못된 예 {/*invalid*/}
1616

17-
Examples of incorrect code for this rule:
17+
이 규칙에 대한 잘못된 코드 예시입니다.
1818

1919
```js
20-
//Missing required fields
20+
//필수 필드 누락
2121
module.exports = {
2222
plugins: [
2323
['babel-plugin-react-compiler', {
2424
gating: {
2525
importSpecifierName: '__experimental_useCompiler'
26-
// Missing 'source' field
26+
// 'source' 필드 누락
2727
}
2828
}]
2929
]
3030
};
3131

32-
//Invalid gating type
32+
//유효하지 않은 게이팅 타입
3333
module.exports = {
3434
plugins: [
3535
['babel-plugin-react-compiler', {
36-
gating: '__experimental_useCompiler' // Should be object
36+
gating: '__experimental_useCompiler' // 객체여야 함
3737
}]
3838
]
3939
};
4040
```
4141

42-
### Valid {/*valid*/}
42+
### 올바른 예 {/*valid*/}
4343

44-
Examples of correct code for this rule:
44+
이 규칙에 대한 올바른 코드 예시입니다.
4545

4646
```js
47-
//Complete gating configuration
47+
//완전한 게이팅 설정
4848
module.exports = {
4949
plugins: [
5050
['babel-plugin-react-compiler', {
5151
gating: {
52-
importSpecifierName: 'isCompilerEnabled', // exported function name
53-
source: 'featureFlags' // module name
52+
importSpecifierName: 'isCompilerEnabled', // 내보낸 함수 이름
53+
source: 'featureFlags' // 모듈 이름
5454
}
5555
}]
5656
]
@@ -61,11 +61,11 @@ export function isCompilerEnabled() {
6161
// ...
6262
}
6363

64-
//No gating (compile everything)
64+
//게이팅 없음 (모든 것을 컴파일)
6565
module.exports = {
6666
plugins: [
6767
['babel-plugin-react-compiler', {
68-
// No gating field - compiles all components
68+
// gating 필드 없음 - 모든 컴포넌트를 컴파일
6969
}]
7070
]
7171
};

0 commit comments

Comments
 (0)