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
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.
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/)).
24
24
3.**તમારા સર્વર અથવા પ્રોક્સીને એવી રીતે ગોઠવો** કે જેથી કરીને `/some-app/` હેઠળની તમામ requests તમારી React એપ્લિકેશન દ્વારા હેન્ડલ કરવામાં આવે.
25
25
26
-
<<<<<<< HEAD
27
26
આવી ગોઠવણી સુનિશ્ચિત કરે છે કે તમારી એપ્લિકેશનનો 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
33
27
34
28
ઘણા React-આધારિત ફ્રેમવર્ક ફુલ-સ્ટેક હોય છે અને તમારી React એપ્લિકેશનને સર્વરનો લાભ લેવા દે છે. જો કે, જો તમે સર્વર પર જાવાસ્ક્રિપ્ટ ચલાવી શકતા નથી અથવા ચલાવવા માંગતા નથી, તો પણ તમે તે જ અભિગમનો ઉપયોગ કરી શકો છો. તે કિસ્સામાં, તેના બદલે `/some-app/` પર HTML/CSS/JS નો export સર્વ (serve) કરો (Next.js માટે [`next export` output](https://nextjs.org/docs/advanced-features/static-html-export), Gatsby માટે ડિફોલ્ટ).
નોંધ કરો કે `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) વાંચો.
155
149
156
-
<<<<<<< HEAD
157
150
જ્યારે તમે હાલના પ્રોજેક્ટમાં 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
161
151
162
152
## હાલની નેટિવ મોબાઇલ એપ્લિકેશનમાં React Native નો ઉપયોગ કરવો {/*using-react-native-in-an-existing-native-mobile-app*/}
Copy file name to clipboardExpand all lines: src/content/learn/describing-the-ui.md
-14Lines changed: 0 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -526,15 +526,9 @@ export default function TeaSet() {
526
526
527
527
## તમારા UI ને ટ્રી તરીકે સમજવું {/*your-ui-as-a-tree*/}
528
528
529
-
<<<<<<< HEAD
530
529
React કમ્પોનેન્ટ્સ અને મોડ્યૂલ્સ વચ્ચેના સંબંધોને દર્શાવવા માટે ટ્રીનો ઉપયોગ કરે છે.
531
530
532
531
એક 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
538
532
539
533
<Diagramname="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'.">
540
534
@@ -544,23 +538,15 @@ A React render tree is a representation of the parent and child relationship bet
544
538
545
539
ટ્રીના ટોચ પર, રુટ કમ્પોનેન્ટના નજીક આવેલી કમ્પોનેન્ટ્સને ટોપ-લેવલ કમ્પોનેન્ટ્સ માનવામાં આવે છે. અને જે કમ્પોનેન્ટ્સના child કમ્પોનેન્ટ્સ નથી, તે લીફ કમ્પોનેન્ટ્સ તરીકે ઓળખાય છે. કમ્પોનેન્ટ્સના આ વિભાજનને ડેટા પ્રવાહ અને રેન્ડરિંગ પ્રદર્શન સમજવામાં ઉપયોગી માનવામાં આવે છે.
546
540
547
-
<<<<<<< HEAD
548
541
જાવાસ્ક્રિપ્ટ મૉડ્યુલ્સ વચ્ચેના સંબંધને 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
552
542
553
543
<Diagramname="generic_dependency_tree"height={250}width={500}alt="પાંચ ગાંઠો સાથેનો એક ટ્રી ગ્રાફ. દરેક નોડ જાવાસ્ક્રિપ્ટ મોડ્યુલનું પ્રતિનિધિત્વ કરે છે. ટોપ-મોસ્ટ નોડ 'RootModule.js' લેબલ થયેલ છે. તેમાં ગાંઠો સુધી વિસ્તરેલા ત્રણ તીર છે: 'ModuleA.js', 'ModuleB.js', અને 'ModuleC.js'. દરેક તીરને 'imports' તરીકે લેબલ કરવામાં આવે છે. 'ModuleC.js' નોડમાં એક જ 'imports' તીર હોય છે જે 'ModuleD.js' લેબલવાળા નોડ તરફ નિર્દેશ કરે છે.">
554
544
555
545
Module Dependency ટ્રીનું ઉદાહરણ.
556
546
557
547
</Diagram>
558
548
559
-
<<<<<<< HEAD
560
549
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.
Copy file name to clipboardExpand all lines: src/content/learn/editor-setup.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,7 @@ React સમુદાયમાં વપરાતા અન્ય લોકપ
31
31
32
32
### લિંટિંગ {/*linting*/}
33
33
34
-
<<<<<<< HEAD
35
34
કોડ લિંટર્સ તમારા કોડમાં સમસ્યાઓ શોધી કાઢે છે જેમ તમે લખો છો, જે તમને વહેલી તકે ઠીક કરવામાં મદદ કરે છે. [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
39
35
40
36
*[React માટે ભલામણ કરેલ ગોઠવણી સાથે ESLint ઇન્સ્ટોલ કરો](https://www.npmjs.com/package/eslint-config-react-app) (ખાતરી કરો કે તમે [Node ઇન્સ્ટોલ કર્યું છે!](https://nodejs.org/en/download/current/))
41
37
*[સત્તાવાર એક્સ્ટેંશન સાથે VSCode માં ESLint ને એકીકૃત કરો](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
Copy file name to clipboardExpand all lines: src/content/reference/react/cache.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,7 @@ The optimization of caching return values based on inputs is known as [_memoizat
65
65
- React will invalidate the cache for all memoized functions for each server request.
66
66
- 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.
67
67
-`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
-
=======
72
68
-`cache` is for use in [Server Components](/reference/rsc/server-components) only.
0 commit comments