Skip to content

Commit 430dc18

Browse files
authored
Merge branch 'main' into sync-e22544e6
2 parents bc15e64 + 010197a commit 430dc18

File tree

2 files changed

+11
-41
lines changed

2 files changed

+11
-41
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ Představme si, že máte existující webovou aplikaci na adrese `example.com`,
2020

2121
Zde je náš doporučený postup:
2222

23-
<<<<<<< HEAD
2423
1. **Vytvořte část aplikace** pomocí některého z [frameworků založených na Reactu](/learn/start-a-new-react-project).
2524
2. **Nastavte `/some-app` jako *základní cestu*** v konfiguraci vašeho frameworku (zde je návod pro: [Next.js](https://nextjs.org/docs/api-reference/next.config.js/basepath) a [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
2625
3. **Nakonfigurujte svůj server nebo proxy server** tak, aby všechny požadavky na cestu `/some-app/` zpracovávala vaše aplikace v Reactu.
27-
=======
28-
1. **Build the React part of your app** using one of the [React-based frameworks](/learn/creating-a-react-app).
29-
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/)).
30-
3. **Configure your server or a proxy** so that all requests under `/some-app/` are handled by your React app.
31-
>>>>>>> 2534424ec6c433cc2c811d5a0bd5a65b75efa5f0
3226

3327
Tímto zajistíte, že část vaší aplikace napsaná Reactu bude využívat [osvědčené postupy a praktiky](/learn/build-a-react-app-from-scratch#consider-using-a-framework), které jsou součástí těchto frameworků.
3428

@@ -155,11 +149,7 @@ root.render(<NavigationBar />);
155149

156150
Všimněte si, že původní obsah HTML ze souboru `index.html` zůstává nezměněn, zatímco vaše vlastní React komponenta `NavigationBar` se nyní zobrazuje uvnitř `<nav id="navigation">` v rámci vašeho HTML. Pro hlubší pochopení rendrování React komponentů uvnitř existující HTML stránky, doporučujeme prostudovat dokumentaci k funkci [`createRoot`](/reference/react-dom/client/createRoot#rendering-a-page-partially-built-with-react).
157151

158-
<<<<<<< HEAD
159152
Běžným postupem při implementaci Reactu do existujícího projektu je začít s malými interaktivními komponenty (např. tlačítky) a postupně "postupovat nahoru", dokud celou stránku netvoří komponenty React. Pokud někdy dosáhnete tohoto bodu, doporučujeme hned poté přejít na [React framework](/learn/start-a-new-react-project), abyste z něj mohli vytěžit maximum.
160-
=======
161-
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.
162-
>>>>>>> 2534424ec6c433cc2c811d5a0bd5a65b75efa5f0
163153

164154
## Implementace React Native do existující nativní mobilní aplikace {/*using-react-native-in-an-existing-native-mobile-app*/}
165155

yarn.lock

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -636,19 +636,10 @@
636636
core-js-pure "^3.20.2"
637637
regenerator-runtime "^0.13.4"
638638

639-
"@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3":
640-
version "7.16.7"
641-
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz"
642-
integrity sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==
643-
dependencies:
644-
regenerator-runtime "^0.13.4"
645-
646-
"@babel/runtime@^7.13.10":
647-
version "7.24.7"
648-
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz"
649-
integrity sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==
650-
dependencies:
651-
regenerator-runtime "^0.14.0"
639+
"@babel/runtime@^7.10.2", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3":
640+
version "7.28.4"
641+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.4.tgz#a70226016fabe25c5783b2f22d3e1c9bc5ca3326"
642+
integrity sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==
652643

653644
"@babel/template@^7.16.7":
654645
version "7.16.7"
@@ -3407,7 +3398,6 @@ eslint-plugin-jsx-a11y@^6.4.1:
34073398

34083399
"eslint-plugin-local-rules@link:eslint-local-rules":
34093400
version "0.0.0"
3410-
uid ""
34113401

34123402
eslint-plugin-react-compiler@^19.0.0-beta-e552027-20250112:
34133403
version "19.0.0-beta-e552027-20250112"
@@ -4728,9 +4718,9 @@ jiti@^1.19.1:
47284718
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
47294719

47304720
js-yaml@^3.13.1:
4731-
version "3.14.1"
4732-
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz"
4733-
integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==
4721+
version "3.14.2"
4722+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.2.tgz#77485ce1dd7f33c061fd1b16ecea23b55fcb04b0"
4723+
integrity sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==
47344724
dependencies:
47354725
argparse "^1.0.7"
47364726
esprima "^4.0.0"
@@ -5761,15 +5751,10 @@ mz@^2.7.0:
57615751
object-assign "^4.0.1"
57625752
thenify-all "^1.0.0"
57635753

5764-
nanoid@^3.2.0:
5765-
version "3.3.1"
5766-
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz"
5767-
integrity sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==
5768-
5769-
nanoid@^3.3.6:
5770-
version "3.3.6"
5771-
resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz"
5772-
integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==
5754+
nanoid@^3.2.0, nanoid@^3.3.6:
5755+
version "3.3.11"
5756+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.11.tgz#4f4f112cefbe303202f2199838128936266d185b"
5757+
integrity sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==
57735758

57745759
natural-compare@^1.4.0:
57755760
version "1.4.0"
@@ -6829,11 +6814,6 @@ regenerator-runtime@^0.13.4:
68296814
resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz"
68306815
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
68316816

6832-
regenerator-runtime@^0.14.0:
6833-
version "0.14.1"
6834-
resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz"
6835-
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
6836-
68376817
regexp.prototype.flags@^1.3.1:
68386818
version "1.4.1"
68396819
resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz"

0 commit comments

Comments
 (0)