Skip to content

Commit db38050

Browse files
authored
fix conflict
1 parent 8b5a491 commit db38050

File tree

4 files changed

+1
-73
lines changed

4 files changed

+1
-73
lines changed

src/content/learn/add-react-to-an-existing-project.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ title: اضافه کردن ری‌اکت به یک پروژه موجود
2424
2. **`/some-app` را به‌عنوان *مسیر پایه*** در پیکربندی فریم‌ورک خود مشخص کنید (راهنما: [Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath)، [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
2525
3. **سرور یا پروکسی خود را پیکربندی کنید** تا همه درخواست‌های زیر مسیر `/some-app/` توسط اپلیکیشن ری‌اکت شما مدیریت شوند.
2626

27-
<<<<<<< HEAD
28-
این کار تضمین می‌کند که بخش ری‌اکت اپلیکیشن شما می‌تواند از [بهترین شیوه‌های موجود](/learn/build-a-react-app-from-scratch#consider-using-a-framework) که در این فریم‌ورک‌ها تعبیه شده‌اند بهره‌مند شود.
29-
=======
30-
This ensures the React part of your app can [benefit from the best practices](/learn/build-a-react-app-from-scratch#consider-using-a-framework) baked into those frameworks.
31-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
27+
این کار تضمین می‌کند که بخش ری‌اکتِ اپلیکیشن شما می‌تواند از [بهترین شیوه‌ها](/learn/build-a-react-app-from-scratch#consider-using-a-framework) تعبیه‌شده در آن فریم‌ورک‌ها بهره‌مند شود.
3228

3329
بسیاری از فریم‌ورک‌های مبتنی بر ری‌اکت فول‌استک هستند و به اپلیکیشن ری‌اکت شما اجازه می‌دهند از قابلیت‌های سرور استفاده کند. با این حال، حتی اگر نتوانید یا نخواهید جاوااسکریپت را روی سرور اجرا کنید، می‌توانید از همان رویکرد استفاده کنید. در این حالت، خروجی HTML/CSS/JS را (خروجی [`next export`](https://nextjs.org/docs/advanced-features/static-html-export) در Next.js یا حالت پیش‌فرض در Gatsby) در مسیر `/some-app/` سرو کنید.
3430

src/content/reference/react/Activity.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ While hidden, children still re-render in response to new props, albeit at a low
5151

5252
When the boundary becomes <CodeStep step={3}>visible</CodeStep> again, React will reveal the children with their previous state restored, and re-create their Effects.
5353

54-
<<<<<<< HEAD
55-
In this way, Activity can thought of as a mechanism for rendering "background activity". Rather than completely discarding content that's likely to become visible again, you can use Activity to maintain and restore that content's UI and internal state, while ensuring hidden content has no unwanted side effects.
56-
=======
5754
In this way, Activity can be thought of as a mechanism for rendering "background activity". Rather than completely discarding content that's likely to become visible again, you can use Activity to maintain and restore that content's UI and internal state, while ensuring that your hidden content has no unwanted side effects.
58-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
5955

6056
[See more examples below.](#usage)
6157

@@ -66,23 +62,15 @@ In this way, Activity can be thought of as a mechanism for rendering "background
6662

6763
#### Caveats {/*caveats*/}
6864

69-
<<<<<<< HEAD
70-
- When used with `<ViewTransition>`, hidden activities that reveal in a transition will activate an "enter" animation. Visible Activities hidden in a transition will activate an "exit" animation.
71-
=======
7265
- If an Activity is rendered inside of a [ViewTransition](/reference/react/ViewTransition), and it becomes visible as a result of an update caused by [startTransition](/reference/react/startTransition), it will activate the ViewTransition's `enter` animation. If it becomes hidden, it will activate its `exit` animation.
73-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
7466

7567
---
7668

7769
## Usage {/*usage*/}
7870

7971
### Restoring the state of hidden components {/*restoring-the-state-of-hidden-components*/}
8072

81-
<<<<<<< HEAD
82-
Typically in React, when you want to conditionally show or hide a component, you mount and unmount it:
83-
=======
8473
In React, when you want to conditionally show or hide a component, you typically mount or unmount it based on that condition:
85-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
8674

8775
```jsx
8876
{isShowingSidebar && (
@@ -100,19 +88,12 @@ When you hide a component using an Activity boundary instead, React will "save"
10088
</Activity>
10189
```
10290

103-
<<<<<<< HEAD
104-
This makes it possible to restore components to their previous state.
10591

106-
The following example has a sidebar with an expandable section – you can press "Overview" to reveal the three subitems below it. The main app area also has a button that hides and shows the sidebar.
107-
108-
Try expanding the Overview section, then toggling the sidebar closed and open:
109-
=======
11092
This makes it possible to hide and then later restore components in the state they were previously in.
11193

11294
The following example has a sidebar with an expandable section. You can press "Overview" to reveal the three subitems below it. The main app area also has a button that hides and shows the sidebar.
11395

11496
Try expanding the Overview section, and then toggling the sidebar closed then open:
115-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
11697

11798
<Sandpack>
11899

src/sidebarHome.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@
1515
"path": "/learn/installation"
1616
},
1717
{
18-
<<<<<<< HEAD
1918
"title": "کامپایلر ری‌اکت",
2019
"path": "/learn/react-compiler"
21-
=======
22-
"title": "React Compiler",
23-
"path": "/learn/react-compiler"
24-
},
25-
{
26-
"hasSectionHeader": true,
27-
"sectionHeader": "LEARN REACT"
28-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
2920
},
3021
{
3122
"hasSectionHeader": true,
@@ -89,27 +80,7 @@
8980
},
9081
{
9182
"hasSectionHeader": true,
92-
<<<<<<< HEAD
9383
"sectionHeader": "API کامپایلر ری‌اکت"
94-
=======
95-
"sectionHeader": "REACT COMPILER API"
96-
},
97-
{
98-
"title": "Configuration",
99-
"path": "/reference/react-compiler/configuration"
100-
},
101-
{
102-
"title": "Directives",
103-
"path": "/reference/react-compiler/directives"
104-
},
105-
{
106-
"title": "Compiling Libraries",
107-
"path": "/reference/react-compiler/compiling-libraries"
108-
},
109-
{
110-
"hasSectionHeader": true,
111-
"sectionHeader": "GET INVOLVED"
112-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
11384
},
11485
{
11586
"title": "پیکربندی",

src/sidebarLearn.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,11 @@
5757
]
5858
},
5959
{
60-
<<<<<<< HEAD
6160
"title": "کامپایلر ری‌اکت",
62-
=======
63-
"title": "React Compiler",
64-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
6561
"path": "/learn/react-compiler",
6662
"canary": true,
6763
"routes": [
6864
{
69-
<<<<<<< HEAD
7065
"title": "مقدمه",
7166
"path": "/learn/react-compiler/introduction"
7267
},
@@ -80,21 +75,6 @@
8075
},
8176
{
8277
"title": "دیباگ و رفع اشکال",
83-
=======
84-
"title": "Introduction",
85-
"path": "/learn/react-compiler/introduction"
86-
},
87-
{
88-
"title": "Installation",
89-
"path": "/learn/react-compiler/installation"
90-
},
91-
{
92-
"title": "Incremental Adoption",
93-
"path": "/learn/react-compiler/incremental-adoption"
94-
},
95-
{
96-
"title": "Debugging and Troubleshooting",
97-
>>>>>>> 27d86ffe6ec82e3642c6490d2187bae2271020a4
9878
"path": "/learn/react-compiler/debugging"
9979
}
10080
]

0 commit comments

Comments
 (0)