Skip to content

Commit 764b1da

Browse files
committed
Update package dependencies and resolve merge conflicts in documentation
- Updated `next` version in `package.json` from `15.4.8` to `15.1.12`. - Modified `yarn.lock` to reflect changes in package versions, including updates to `@emnapi/runtime` and `@img/sharp` packages. - Cleaned up documentation by removing merge conflict markers and ensuring consistency in language across various files, including `add-react-to-an-existing-project.md`, `describing-the-ui.md`, and `editor-setup.md`. - Clarified caching behavior in `cache.md` for server components.
1 parent 571afbe commit 764b1da

7 files changed

Lines changed: 155 additions & 268 deletions

File tree

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@
3636
"classnames": "^2.2.6",
3737
"debounce": "^1.2.1",
3838
"github-slugger": "^1.3.0",
39-
<<<<<<< HEAD
40-
"next": "15.4.8",
41-
=======
4239
"next": "15.1.12",
43-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
4440
"next-remote-watch": "^1.0.0",
4541
"parse-numeric-range": "^1.2.0",
4642
"raw-loader": "^4.0.2",

src/components/MDX/ErrorDecoder.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function replaceArgs(
2525
/**
2626
* Sindre Sorhus <https://sindresorhus.com>
2727
* Released under MIT license
28-
2928
* https://github.com/sindresorhus/linkify-urls/blob/b2397096df152e2f799011f7a48e5f73b4bf1c7e/index.js#L5C1-L7C1
3029
*
3130
* The regex is used to extract URL from the string for linkify.

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ title: હાલના પ્રોજેક્ટમાં React ઉમેર
2323
2. **તમારા ફ્રેમવર્કના કન્ફિગરેશનમાં `/some-app` ને *base path* તરીકે સ્પષ્ટ કરો** (આ રીતે: [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/)).
2424
3. **તમારા સર્વર અથવા પ્રોક્સીને એવી રીતે ગોઠવો** કે જેથી કરીને `/some-app/` હેઠળની તમામ requests તમારી React એપ્લિકેશન દ્વારા હેન્ડલ કરવામાં આવે.
2525

26-
<<<<<<< HEAD
2726
આવી ગોઠવણી સુનિશ્ચિત કરે છે કે તમારી એપ્લિકેશનનો React ભાગ તે ફ્રેમવર્કમાં રહેલી [શ્રેષ્ઠ પદ્ધતિઓનો લાભ મેળવી શકે](/learn/build-a-react-app-from-scratch#consider-using-a-framework).
28-
=======
29-
1. **Build the React part of your app** using one of the [React-based frameworks](/learn/creating-a-react-app).
30-
2. **Specify `/some-app` as the *base path*** in your framework's configuration (here's how: [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/)).
31-
3. **Configure your server or a proxy** so that all requests under `/some-app/` are handled by your React app.
32-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
3327

3428
ઘણા React-આધારિત ફ્રેમવર્ક ફુલ-સ્ટેક હોય છે અને તમારી React એપ્લિકેશનને સર્વરનો લાભ લેવા દે છે. જો કે, જો તમે સર્વર પર જાવાસ્ક્રિપ્ટ ચલાવી શકતા નથી અથવા ચલાવવા માંગતા નથી, તો પણ તમે તે જ અભિગમનો ઉપયોગ કરી શકો છો. તે કિસ્સામાં, તેના બદલે `/some-app/` પર HTML/CSS/JS નો export સર્વ (serve) કરો (Next.js માટે [`next export` output](https://nextjs.org/docs/advanced-features/static-html-export), Gatsby માટે ડિફોલ્ટ).
3529

@@ -153,11 +147,7 @@ root.render(<NavigationBar />);
153147

154148
નોંધ કરો કે `index.html` માંથી મૂળ HTML content કેવી રીતે સચવાયેલ છે, પરંતુ તમારો પોતાનો `NavigationBar` React કમ્પોનેન્ટ હવે તમારા HTML માં `<nav id="navigation">` ની અંદર દેખાય છે. હાલના HTML પેજ ની અંદર React કમ્પોનેન્ટ્સને રેન્ડર કરવા વિશે વધુ જાણવા માટે [`createRoot વાપરવા માટેનું ડોક્યુમેન્ટેશન`](/reference/react-dom/client/createRoot#rendering-a-page-partially-built-with-react) વાંચો.
155149

156-
<<<<<<< HEAD
157150
જ્યારે તમે હાલના પ્રોજેક્ટમાં React અપનાવો, ત્યારે નાના interactive કમ્પોનેન્ટ્સ (જેમ કે બટનો) થી પ્રારંભ કરવું સામાન્ય છે, અને પછી ધીમે ધીમે આગળ વધતા જવું જ્યાં સુધી આખરે તમારું આખું પેજ React થી બનેલું હોય. જો તમે ક્યારેય તે બિંદુએ પહોંચો છો, તો અમે React નો સૌથી વધુ લાભ મેળવવા માટે તરત જ [React ફ્રેમવર્ક](/learn/start-a-new-react-project) પર શિફ્ટ (migrate) થવાની સલાહ આપીએ છીએ.
158-
=======
159-
When you adopt React in an existing project, it's common to start with small interactive components (like buttons), and then gradually keep "moving upwards" until eventually your entire page is built with React. If you ever reach that point, we recommend migrating to [a React framework](/learn/creating-a-react-app) right after to get the most out of React.
160-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
161151

162152
## હાલની નેટિવ મોબાઇલ એપ્લિકેશનમાં React Native નો ઉપયોગ કરવો {/*using-react-native-in-an-existing-native-mobile-app*/}
163153

src/content/learn/describing-the-ui.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -526,15 +526,9 @@ export default function TeaSet() {
526526

527527
## તમારા UI ને ટ્રી તરીકે સમજવું {/*your-ui-as-a-tree*/}
528528

529-
<<<<<<< HEAD
530529
React કમ્પોનેન્ટ્સ અને મોડ્યૂલ્સ વચ્ચેના સંબંધોને દર્શાવવા માટે ટ્રીનો ઉપયોગ કરે છે.
531530

532531
એક React રેન્ડર ટ્રી એ કમ્પોનેન્ટ્સના parent અને child સંબંધોને પ્રસ્તુત કરે છે.
533-
=======
534-
React uses trees to model the relationships between components and modules.
535-
536-
A React render tree is a representation of the parent and child relationship between components.
537-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
538532

539533
<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">
540534

@@ -544,23 +538,15 @@ A React render tree is a representation of the parent and child relationship bet
544538

545539
ટ્રીના ટોચ પર, રુટ કમ્પોનેન્ટના નજીક આવેલી કમ્પોનેન્ટ્સને ટોપ-લેવલ કમ્પોનેન્ટ્સ માનવામાં આવે છે. અને જે કમ્પોનેન્ટ્સના child કમ્પોનેન્ટ્સ નથી, તે લીફ કમ્પોનેન્ટ્સ તરીકે ઓળખાય છે. કમ્પોનેન્ટ્સના આ વિભાજનને ડેટા પ્રવાહ અને રેન્ડરિંગ પ્રદર્શન સમજવામાં ઉપયોગી માનવામાં આવે છે.
546540

547-
<<<<<<< HEAD
548541
જાવાસ્ક્રિપ્ટ મૉડ્યુલ્સ વચ્ચેના સંબંધને Module Dependency Tree તરીકે મૉડેલ કરવું, એ પણ તમારા એપ્લિકેશનને સમજવા માટે એક ઉપયોગી રીત છે.
549-
=======
550-
Modelling the relationship between JavaScript modules is another useful way to understand your app. We refer to it as a module dependency tree.
551-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
552542

553543
<Diagram name="generic_dependency_tree" height={250} width={500} alt="પાંચ ગાંઠો સાથેનો એક ટ્રી ગ્રાફ. દરેક નોડ જાવાસ્ક્રિપ્ટ મોડ્યુલનું પ્રતિનિધિત્વ કરે છે. ટોપ-મોસ્ટ નોડ 'RootModule.js' લેબલ થયેલ છે. તેમાં ગાંઠો સુધી વિસ્તરેલા ત્રણ તીર છે: 'ModuleA.js', 'ModuleB.js', અને 'ModuleC.js'. દરેક તીરને 'imports' તરીકે લેબલ કરવામાં આવે છે. 'ModuleC.js' નોડમાં એક જ 'imports' તીર હોય છે જે 'ModuleD.js' લેબલવાળા નોડ તરફ નિર્દેશ કરે છે.">
554544

555545
Module Dependency ટ્રીનું ઉદાહરણ.
556546

557547
</Diagram>
558548

559-
<<<<<<< HEAD
560549
Dependency Tree એ મોટાભાગના બિલ્ડ ટૂલ્સ દ્વારા ઉપયોગમાં લેવાય છે, જે ક્લાયન્ટ માટે ડાઉનલોડ અને રેન્ડર કરવા માટે તમામ સંબંધિત JavaScript કોડને બંડલ કરે છે. મોટા બંડલ કદને કારણે React એપ્લિકેશન્સમાં યુઝર અનુભવ પર નકારાત્મક અસર પડે છે. Module Dependency ટ્રીને સમજવાથી આવા સમસ્યાઓ ને ડિબગ કરવામાં મદદ મળે છે.
561-
=======
562-
A dependency tree is often used by build tools to bundle all the relevant JavaScript code for the client to download and render. A large bundle size regresses user experience for React apps. Understanding the module dependency tree is helpful to debug such issues.
563-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
564550

565551
<LearnMore path="/learn/understanding-your-ui-as-a-tree">
566552

src/content/learn/editor-setup.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ React સમુદાયમાં વપરાતા અન્ય લોકપ
3131

3232
### લિંટિંગ {/*linting*/}
3333

34-
<<<<<<< HEAD
3534
કોડ લિંટર્સ તમારા કોડમાં સમસ્યાઓ શોધી કાઢે છે જેમ તમે લખો છો, જે તમને વહેલી તકે ઠીક કરવામાં મદદ કરે છે. [ESLint](https://eslint.org/) એ જાવાસ્ક્રિપ્ટ માટે લોકપ્રિય, ઓપન સોર્સ લિંટર છે.
36-
=======
37-
Code linters find problems in your code as you write, helping you fix them early. [ESLint](https://eslint.org/) is a popular, open source linter for JavaScript.
38-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
3935

4036
* [React માટે ભલામણ કરેલ ગોઠવણી સાથે ESLint ઇન્સ્ટોલ કરો](https://www.npmjs.com/package/eslint-config-react-app) (ખાતરી કરો કે તમે [Node ઇન્સ્ટોલ કર્યું છે!](https://nodejs.org/en/download/current/))
4137
* [સત્તાવાર એક્સ્ટેંશન સાથે VSCode માં ESLint ને એકીકૃત કરો](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)

src/content/reference/react/cache.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ The optimization of caching return values based on inputs is known as [_memoizat
6565
- React will invalidate the cache for all memoized functions for each server request.
6666
- Each call to `cache` creates a new function. This means that calling `cache` with the same function multiple times will return different memoized functions that do not share the same cache.
6767
- `cachedFn` will also cache errors. If `fn` throws an error for certain arguments, it will be cached, and the same error is re-thrown when `cachedFn` is called with those same arguments.
68-
<<<<<<< HEAD
69-
70-
- `cache` is for use in [Server Components](/blog/2023/03/22/react-labs-what-we-have-been-working-on-march-2023#react-server-components) only.
71-
=======
7268
- `cache` is for use in [Server Components](/reference/rsc/server-components) only.
73-
>>>>>>> 2639f369946f763fff9a2572b0d7c4b9e2f83ebd
7469

7570

7671
---

0 commit comments

Comments
 (0)