Comments (2)
관련 내용이 #810 에서도 등장해 함께 이야기되면 좋을 것 같습니다.
When a file marked 'use client' is imported from a server component, compatible bundlers will treat the import as the “cut-off point” between server-only code and client code. Components at or below this point in the module graph can use client-only React features like useState.
Directives like 'use client' must be at the very beginning of a file, above any imports or other code (comments above directives are OK).
from ko.reactjs.org.
Directives like 'use server' must be at the very beginning of their function or file, above any other code including imports (comments above directives are OK).
여기서는 문맥으로 보면 import
코드를 의미하는 거라서 번역하지 않고 영어 그대로 표기해야 맞을 것 같습니다.
import를 비롯한 다른 모든 코드보다 위에 있어야 한다.
When a file marked 'use client' is imported from a server component, compatible bundlers will treat the import as the “cut-off point” between server-only code and client code. Components at or below this point in the module graph can use client-only React features like useState.
뒤에 올려준 부분은 책을 번역할 때는 한국어로 보통 "가져온다"라고 표기하는데, 위 사례와 동일한 원칙을 적용하고 싶다면 import하다
로 쓸 수 있습니다 . 제 눈에는 어색하게 보이지만 다른 분들이 괜찮다면 용인할 정도는 됩니다.
안1:
'use client'로 표시된 파일을 서버 컴포넌트에서 import할 때...
안2:
'use client'로 표시된 파일을 서버 컴포넌트에서 가져올 때...
from ko.reactjs.org.
Related Issues (20)
- [번역 필요] 'use server' HOT 4
- [번역 필요] cache HOT 4
- [번역 필요] experimental_taintObjectReference HOT 2
- [번역 필요] experimental_taintUniqueValue HOT 4
- 용어: Directive HOT 2
- 용어: Bundler HOT 3
- [번역 누락] 렌더링 그리고 커밋 페이지의 번역 누락 HOT 2
- 2023-11-27 Conflict Resolve HOT 6
- 용어: Dependencies HOT 5
- [번역 중복] state 업데이트 큐 페이지 HOT 2
- Incorrect href in React learning documentation HOT 1
- [번역 필요] useFormState, useFormStatus HOT 3
- [번역 필요] Hook 훝어보기, form 컴포넌트 HOT 2
- [번역 필요] React Labs: What We've Been Working On – February 2024 HOT 2
- [번역 필요]: Overview hooks use
- [번역 필요] Directives HOT 1
- [번역 필요] useFormStatus HOT 2
- [번역 필요] useFormState HOT 2
- [번역 필요] form
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ko.reactjs.org.