Skip to content

Commit 9500161

Browse files
authored
fix confilict
1 parent 35c0e71 commit 9500161

File tree

13 files changed

+1
-101
lines changed

13 files changed

+1
-101
lines changed

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@
2121
"postinstall": "yarn --cwd eslint-local-rules install && is-ci || husky install .husky",
2222
"check-all": "npm-run-all prettier lint:fix tsc rss",
2323
"rss": "node scripts/generateRss.js",
24-
<<<<<<< HEAD
25-
"deadlinks": "node scripts/deadLinkChecker.js"
26-
=======
2724
"deadlinks": "node scripts/deadLinkChecker.js",
2825
"copyright": "node scripts/copyright.js",
2926
"test:eslint-local-rules": "yarn --cwd eslint-local-rules test"
30-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
3127
},
3228
"dependencies": {
3329
"@codesandbox/sandpack-react": "2.13.5",
@@ -67,11 +63,7 @@
6763
"asyncro": "^3.0.0",
6864
"autoprefixer": "^10.4.2",
6965
"babel-eslint": "10.x",
70-
<<<<<<< HEAD
71-
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
72-
=======
7366
"babel-plugin-react-compiler": "^19.1.0-rc.3",
74-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
7567
"chalk": "4.1.2",
7668
"eslint": "7.x",
7769
"eslint-config-next": "12.0.3",

scripts/deadLinkChecker.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/usr/bin/env node
2-
<<<<<<< HEAD
3-
=======
42
/**
53
* Copyright (c) Meta Platforms, Inc. and affiliates.
64
*
75
* This source code is licensed under the MIT license found in the
86
* LICENSE file in the root directory of this source tree.
97
*/
10-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
118

129
const fs = require('fs');
1310
const path = require('path');

src/components/MDX/Sandpack/ClearButton.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
<<<<<<< HEAD
2-
=======
31
/**
42
* Copyright (c) Meta Platforms, Inc. and affiliates.
53
*
64
* This source code is licensed under the MIT license found in the
75
* LICENSE file in the root directory of this source tree.
86
*/
97

10-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
118
/*
129
* Copyright (c) Facebook, Inc. and its affiliates.
1310
*/

src/components/MDX/Sandpack/ReloadButton.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
<<<<<<< HEAD
2-
=======
31
/**
42
* Copyright (c) Meta Platforms, Inc. and affiliates.
53
*
64
* This source code is licensed under the MIT license found in the
75
* LICENSE file in the root directory of this source tree.
86
*/
97

10-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
118
/*
129
* Copyright (c) Facebook, Inc. and its affiliates.
1310
*/

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-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
27+
این کار باعث می‌شود بخش React اپلیکیشن شما بتواند از [بهترین شیوه‌ها](/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/learn/react-compiler/introduction.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ React Compiler automatically optimizes your React application at build time. Rea
2828

2929
Without the compiler, you need to manually memoize components and values to optimize re-renders:
3030

31-
<<<<<<< HEAD
32-
```js
33-
=======
3431
```js {expectedErrors: {'react-compiler': [4]}}
35-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
3632
import { useMemo, useCallback, memo } from 'react';
3733

3834
const ExpensiveComponent = memo(function ExpensiveComponent({ data, onClick }) {

src/content/learn/separating-events-from-effects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -990,11 +990,7 @@ To fix this code, it's enough to follow the rules.
990990
```
991991
992992
993-
<<<<<<< HEAD
994-
```js
995-
=======
996993
```js {expectedErrors: {'react-compiler': [14]}}
997-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
998994
import { useState, useEffect } from 'react';
999995

1000996
export default function Timer() {

src/content/reference/react/Activity.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,10 @@ When you hide a component using an Activity boundary instead, React will "save"
8282
</Activity>
8383
```
8484

85-
<<<<<<< HEAD
86-
87-
This makes it possible to hide and then later restore components in the state they were previously in.
88-
89-
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.
90-
91-
=======
9285
This makes it possible to hide and then later restore components in the state they were previously in.
9386

9487
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.
9588

96-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
9789
Try expanding the Overview section, and then toggling the sidebar closed then open:
9890

9991
<Sandpack>

src/content/reference/react/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ The React Compiler is a build-time optimization tool that automatically memoizes
3737
* [Directives](/reference/react-compiler/directives) - Function-level directives to control compilation.
3838
* [Compiling Libraries](/reference/react-compiler/compiling-libraries) - Guide for shipping pre-compiled library code.
3939

40-
<<<<<<< HEAD
41-
=======
4240
## ESLint Plugin React Hooks {/*eslint-plugin-react-hooks*/}
4341

4442
The [ESLint plugin for React Hooks](/reference/eslint-plugin-react-hooks) helps enforce the Rules of React:
4543

4644
* [Lints](/reference/eslint-plugin-react-hooks) - Detailed documentation for each lint with examples.
4745

48-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
4946
## Rules of React {/*rules-of-react*/}
5047

5148
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:

src/content/reference/react/useTransition.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,11 +2006,7 @@ export default function Item({action}) {
20062006
startTransition(() => {
20072007
action(e.target.value);
20082008
});
2009-
<<<<<<< HEAD
2010-
}
2011-
=======
20122009
}
2013-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
20142010
return (
20152011
<div className="item">
20162012
<span>Eras Tour Tickets</span>

0 commit comments

Comments
 (0)