You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Split the components further {/*split-the-components-further*/}
250
+
#### تا جایی که میتوانید کامپوننت هارا به کامپوننت های کوچک تری تقسیم کنید {/*split-the-components-further*/}
251
251
252
-
Currently, `Gallery.js`exports both`Profile`and`Gallery`, which is a bit confusing.
252
+
در حال حاضر, فایل `Gallery.js`دو کامپوننت`Profile`و`Gallery` را اکسپورت میکند, که یک مقداری گیج کنندست.
253
253
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` همان را ایمپورت کنید.
255
255
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 مطمئن شوید از کدام روش استفاده میکنید. برای این منظور جدول زیر را چک کنید:
257
257
258
258
| Syntax | Export statement | Import statement |
259
259
| ----------- | ----------- | ----------- |
@@ -262,7 +262,7 @@ You may use either a default or a named export for `Profile`, but make sure that
262
262
263
263
<Hint>
264
264
265
-
Don't forget to import your components where they are called. Doesn't `Gallery` use `Profile`, too?
265
+
زمانی که کامپوننت هارا صدا میزنید, حتما کامپوننت هارا import کنید. به نظر شما تا اینجا ما کامپوننت `Profile` را هم در فایل `Gallery.js` داریم؟
266
266
267
267
</Hint>
268
268
@@ -282,7 +282,7 @@ export default function App() {
0 commit comments