Skip to content

Commit 62fdd8e

Browse files
committed
complete translate importing and exporting component page
1 parent a5db375 commit 62fdd8e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ img { margin: 0 10px 10px 0; height: 90px; }
247247

248248
<Challenges>
249249

250-
#### Split the components further {/*split-the-components-further*/}
250+
#### تا جایی که میتوانید کامپوننت هارا به کامپوننت های کوچک تری تقسیم کنید {/*split-the-components-further*/}
251251

252-
Currently, `Gallery.js` exports both `Profile` and `Gallery`, which is a bit confusing.
252+
در حال حاضر, فایل `Gallery.js` دو کامپوننت `Profile` و `Gallery` را اکسپورت میکند, که یک مقداری گیج کنندست.
253253

254-
Move the `Profile` component to its own `Profile.js`, and then change the `App` component to render both `<Profile />` and `<Gallery />` one after another.
254+
یک فایلی را با نام `Profile.js` بسازید و کامپوننت `Profile` را درون آن بیاورید و اکسپورت کنید. سپس در کامپوننت `App` همان را ایمپورت کنید.
255255

256-
You may use either a default or a named export for `Profile`, but make sure that you use the corresponding import syntax in both `App.js` and `Gallery.js`! You can refer to the table from the deep dive above:
256+
هنگام استفاده از دستور export و import مطمئن شوید از کدام روش استفاده میکنید. برای این منظور جدول زیر را چک کنید:
257257

258258
| Syntax | Export statement | Import statement |
259259
| ----------- | ----------- | ----------- |
@@ -262,7 +262,7 @@ You may use either a default or a named export for `Profile`, but make sure that
262262

263263
<Hint>
264264

265-
Don't forget to import your components where they are called. Doesn't `Gallery` use `Profile`, too?
265+
زمانی که کامپوننت هارا صدا میزنید, حتما کامپوننت هارا import کنید. به نظر شما تا اینجا ما کامپوننت `Profile` را هم در فایل `Gallery.js` داریم؟
266266

267267
</Hint>
268268

@@ -282,7 +282,7 @@ export default function App() {
282282
```
283283

284284
```js Gallery.js active
285-
// Move me to Profile.js!
285+
// Profile.js منو بیار توی فایل
286286
export function Profile() {
287287
return (
288288
<img
@@ -313,11 +313,11 @@ img { margin: 0 10px 10px 0; height: 90px; }
313313

314314
</Sandpack>
315315

316-
After you get it working with one kind of exports, make it work with the other kind.
316+
خب بسیار هم عالی! الان وقت آن رسیده که با نوع دیگری از export کار کنید.
317317

318318
<Solution>
319319

320-
This is the solution with named exports:
320+
این تکه کد از named export (دستور اکسپورت معمولی) استفاده کرده است:
321321

322322
<Sandpack>
323323

@@ -367,7 +367,7 @@ img { margin: 0 10px 10px 0; height: 90px; }
367367

368368
</Sandpack>
369369

370-
This is the solution with default exports:
370+
و همچنین کد زیر هم با default export (اکسپورت پیش فرض) نوشته شده است:
371371

372372
<Sandpack>
373373

0 commit comments

Comments
 (0)