Skip to content

Commit a5db375

Browse files
committed
translate from line 182 to 242 on import and export component page
1 parent fe98258 commit a5db375

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/content/learn/importing-and-exporting-components.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default function App() {
179179
}
180180
```
181181

182-
Now `Gallery.js` contains two exports: a default `Gallery` export, and a named `Profile` export. `App.js` imports both of them. Try editing `<Profile />` to `<Gallery />` and back in this example:
182+
حال در اینجا فایل `Gallery.js` دو export دارد: یک default export مربوط به کامپوننت `Gallery`, و یک named export مربوط به کامپوننت `Profile`. در فایل `App.js` هردوی آنها ایمپورت میشوند. حال دستور `<Profile />` را به `<Gallery />` تغییر بدهید و به مثال بازگردید:
183183

184184
<Sandpack>
185185

@@ -222,24 +222,24 @@ img { margin: 0 10px 10px 0; height: 90px; }
222222

223223
</Sandpack>
224224

225-
Now you're using a mix of default and named exports:
225+
حال شما از هر دو نوع از دستور export استفاده کردید:
226226

227227
* `Gallery.js`:
228-
- Exports the `Profile` component as a **named export called `Profile`.**
229-
- Exports the `Gallery` component as a **default export.**
228+
- کامپوننت `Profile` به عنوان **named export** که نام آن `Profile` است اکسپورت شده.
229+
- کامپوننت `Gallery` به عنوان **default export** اکسپورت شده است
230230
* `App.js`:
231-
- Imports `Profile` as a **named import called `Profile`** from `Gallery.js`.
232-
- Imports `Gallery` as a **default import** from `Gallery.js`.
233-
- Exports the root `App` component as a **default export.**
231+
- کامپوننت `Profile` به عنوان **named import** که نام آن `Profile` است در `Gallery.js` ایمپورت شده.
232+
- کامپوننت `Gallery` به عنوان **default import** در فایل `Gallery.js` ایمپورت شده.
233+
- کامپوننت `App` که کامپوننت ریشه است به عنوان **default export** اکسپورت شده است.
234234

235235
<Recap>
236236

237-
On this page you learned:
237+
مواردی که در این صفحه یاد گرفتید:
238238

239-
* What a root component file is
240-
* How to import and export a component
241-
* When and how to use default and named imports and exports
242-
* How to export multiple components from the same file
239+
* کامپوننت اصلی (root) چیست
240+
* چگونه یک کامپوننت را export/import کنیم
241+
* چه زمانی از export/import پیش فرض یا معمولی استفاده کنیم
242+
* چگونه چندین کامپوننت را که داخل یک فایل هستند را اکسپورت کنیم
243243

244244
</Recap>
245245

0 commit comments

Comments
 (0)