Skip to content

Commit 118a7e7

Browse files
authored
fix conflict
1 parent 93d9af0 commit 118a7e7

File tree

9 files changed

+2
-109
lines changed

9 files changed

+2
-109
lines changed

src/content/community/conferences.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ October 2-4, 2025. Alicante, Spain.
2020

2121
[Website](https://reactalicante.es/) - [Twitter](https://x.com/ReactAlicante) - [Bluesky](https://bsky.app/profile/reactalicante.es) - [YouTube](https://www.youtube.com/channel/UCaSdUaITU1Cz6PvC97A7e0w)
2222

23-
<<<<<<< HEAD
24-
=======
2523
### RenderCon Kenya 2025 {/*rendercon-kenya-2025*/}
2624
October 04, 2025. Nairobi, Kenya
2725

2826
[Website](https://rendercon.org/) - [Twitter](https://twitter.com/renderconke) - [LinkedIn](https://www.linkedin.com/company/renderconke/) - [YouTube](https://www.youtube.com/channel/UC0bCcG8gHUL4njDOpQGcMIA)
2927

30-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
3128
### React Conf 2025 {/*react-conf-2025*/}
3229
October 7-8, 2025. Henderson, Nevada, USA and free livestream
3330

src/content/community/meetups.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,9 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
138138
## Portugal {/*portugal*/}
139139
* [Lisbon](https://www.meetup.com/JavaScript-Lisbon/)
140140

141-
<<<<<<< HEAD
142-
=======
143141
## Scotland (UK) {/*scotland-uk*/}
144142
* [Edinburgh](https://www.meetup.com/react-edinburgh/)
145143

146-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
147144
## Spain {/*spain*/}
148145
* [Barcelona](https://www.meetup.com/ReactJS-Barcelona/)
149146

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

Lines changed: 0 additions & 4 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
2827
این کار تضمین می‌کند که بخش ری‌اکت اپلیکیشن شما می‌تواند از [بهترین شیوه‌های موجود](/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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
3228

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

src/content/learn/react-compiler/installation.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,7 @@ Install the ESLint plugin:
176176
npm install -D eslint-plugin-react-hooks@rc
177177
</TerminalBlock>
178178

179-
<<<<<<< HEAD
180-
Then enable the compiler rule in your ESLint configuration:
181-
182-
```js {3}
183-
// .eslintrc.js
184-
module.exports = {
185-
rules: {
186-
'react-hooks/react-compiler': 'error',
187-
},
188-
};
189-
```
190-
=======
191179
If you haven't already configured eslint-plugin-react-hooks, follow the [installation instructions in the readme](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/README.md#installation). The compiler rule is enabled by default in the latest RC, so no additional configuration is needed.
192-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
193180

194181
The ESLint rule will:
195182
- Identify violations of the [Rules of React](/reference/rules)

src/content/learn/react-compiler/introduction.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ const ExpensiveComponent = memo(function ExpensiveComponent({ data, onClick }) {
5050
});
5151
```
5252

53-
<<<<<<< HEAD
54-
=======
5553

5654
<Note>
5755

@@ -67,7 +65,6 @@ React Compiler is able to optimize this correctly with or without the arrow func
6765

6866
</Note>
6967

70-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
7168
### After React Compiler {/*after-react-compiler*/}
7269

7370
With React Compiler, you write the same code without manual memoization:
@@ -92,11 +89,7 @@ function ExpensiveComponent({ data, onClick }) {
9289

9390
_[See this example in the React Compiler Playground](https://playground.react.dev/#N4Igzg9grgTgxgUxALhAMygOzgFwJYSYAEAogB4AOCmYeAbggMIQC2Fh1OAFMEQCYBDHAIA0RQowA2eOAGsiAXwCURYAB1iROITA4iFGBERgwCPgBEhAogF4iCStVoMACoeO1MAcy6DhSgG4NDSItHT0ACwFMPkkmaTlbIi48HAQWFRsAPlUQ0PFMKRlZFLSWADo8PkC8hSDMPJgEHFhiLjzQgB4+eiyO-OADIwQTM0thcpYBClL02xz2zXz8zoBJMqJZBABPG2BU9Mq+BQKiuT2uTJyomLizkoOMk4B6PqX8pSUFfs7nnro3qEapgFCAFEA)_
9491

95-
<<<<<<< HEAD
96-
React Compiler automatically applies the equivalent optimizations, ensuring your app only re-renders when necessary.
97-
=======
9892
React Compiler automatically applies the optimal memoization, ensuring your app only re-renders when necessary.
99-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
10093

10194
<DeepDive>
10295
#### What kind of memoization does React Compiler add? {/*what-kind-of-memoization-does-react-compiler-add*/}
@@ -176,11 +169,7 @@ Next.js users can enable the swc-invoked React Compiler by using [v15.3.1](https
176169

177170
## What should I do about useMemo, useCallback, and React.memo? {/*what-should-i-do-about-usememo-usecallback-and-reactmemo*/}
178171

179-
<<<<<<< HEAD
180-
If you are using React Compiler, [`useMemo`](/reference/react/useMemo), [`useCallback`](/reference/react/useCallback), and [`React.memo`](/reference/react/memo) can be removed. React Compiler adds automatic memoization more precisely and granularly than is possible with these hooks. If you choose to keep manual memoization, React Compiler will analyze them and determine if your manual memoization matches its automatically inferred memoization. If there isn't a match, the compiler will choose to bail out of optimizing that component.
181-
=======
182172
React Compiler adds automatic memoization more precisely and granularly than is possible with [`useMemo`](/reference/react/useMemo), [`useCallback`](/reference/react/useCallback), and [`React.memo`](/reference/react/memo). If you choose to keep manual memoization, React Compiler will analyze them and determine if your manual memoization matches its automatically inferred memoization. If there isn't a match, the compiler will choose to bail out of optimizing that component.
183-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
184173

185174
This is done out of caution as a common anti-pattern with manual memoization is using it for correctness. This means your app depends on specific values being memoized to work properly. For example, in order to prevent an infinite loop, you may have memoized some values to stop a `useEffect` call from firing. This breaks the Rules of React, but since it can potentially be dangerous for the compiler to automatically remove manual memoization, the compiler will just bail out instead. You should manually remove your handwritten memoization and verify that your app still works as expected.
186175

src/content/reference/react-dom/components/form.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ export async function deliverMessage(message) {
229229

230230
</Sandpack>
231231

232-
<<<<<<< HEAD
233-
[//]: # 'Uncomment the next line, and delete this line after the `useOptimistic` reference documentatino page is published'
234-
=======
235232
[//]: # 'Uncomment the next line, and delete this line after the `useOptimistic` reference documentation page is published'
236-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
237233
[//]: # 'To learn more about the `useOptimistic` Hook see the [reference documentation](/reference/react/useOptimistic).'
238234

239235
### Handling form submission errors {/*handling-form-submission-errors*/}

src/content/reference/react/Activity.md

Lines changed: 0 additions & 20 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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
8674

8775
```jsx
8876
{isShowingSidebar && (
@@ -100,19 +88,11 @@ 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.
105-
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-
=======
11091
This makes it possible to hide and then later restore components in the state they were previously in.
11192

11293
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.
11394

11495
Try expanding the Overview section, and then toggling the sidebar closed then open:
115-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
11696

11797
<Sandpack>
11898

src/sidebarHome.json

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,12 @@
1515
"path": "/learn/installation"
1616
},
1717
{
18-
<<<<<<< HEAD
1918
"title": "کامپایلر ری‌اکت",
2019
"path": "/learn/react-compiler"
21-
=======
22-
"title": "Setup",
23-
"path": "/learn/setup"
2420
},
2521
{
26-
"title": "React Compiler",
27-
"path": "/learn/react-compiler"
28-
},
29-
{
30-
"hasSectionHeader": true,
31-
"sectionHeader": "LEARN REACT"
32-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
22+
"title": "راه‌اندازی",
23+
"path": "/learn/setup"
3324
},
3425
{
3526
"hasSectionHeader": true,
@@ -93,27 +84,7 @@
9384
},
9485
{
9586
"hasSectionHeader": true,
96-
<<<<<<< HEAD
9787
"sectionHeader": "API کامپایلر ری‌اکت"
98-
=======
99-
"sectionHeader": "REACT COMPILER API"
100-
},
101-
{
102-
"title": "Configuration",
103-
"path": "/reference/react-compiler/configuration"
104-
},
105-
{
106-
"title": "Directives",
107-
"path": "/reference/react-compiler/directives"
108-
},
109-
{
110-
"title": "Compiling Libraries",
111-
"path": "/reference/react-compiler/compiling-libraries"
112-
},
113-
{
114-
"hasSectionHeader": true,
115-
"sectionHeader": "GET INVOLVED"
116-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
11788
},
11889
{
11990
"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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
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-
>>>>>>> d34c6a2c6fa49fc6f64b07aa4fa979d86d41c4e8
9878
"path": "/learn/react-compiler/debugging"
9979
}
10080
]

0 commit comments

Comments
 (0)