Skip to content

Commit 8931c96

Browse files
committed
Translate Creating a React App
1 parent e2121b5 commit 8931c96

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,116 @@
11
---
2-
title: Creating a React App
2+
title: Створення React-застосунку
33
---
44

55
<Intro>
66

7-
If you want to build a new app or website with React, we recommend starting with a framework.
7+
Якщо ви вирішили розробити новий застосунок або вебсайт за допомогою React, ми радимо вибрати один із фреймворків.
88

99
</Intro>
1010

11-
## Recommended React frameworks {/*bleeding-edge-react-frameworks*/}
11+
## Рекомендовані React-фреймворки {/*bleeding-edge-react-frameworks*/}
1212

13-
These recommended frameworks support all the features you need to deploy and scale your app in production. They have integrated the latest React features and take advantage of React’s architecture.
13+
Ці фреймворки підтримують усі функції, що знадобляться для розгортання та масштабування застосунку в публічному середовищі (in production). Вони інтегрували останні React-функції й послуговуються перевагами архітектури React.
1414

1515
<Note>
1616

17-
#### React frameworks do not require a server. {/*react-frameworks-do-not-require-a-server*/}
17+
#### React-фреймворки не потребують сервера. {/*react-frameworks-do-not-require-a-server*/}
1818

19-
All the frameworks on this page can create single-page apps. Single-page apps can be deployed to a [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) or static hosting service and do not need a server. If you would like to enable features that require a server (like server side rendering), you can opt-in on individual routes without rewriting your app.
19+
Усі фреймворки на цій сторінці можуть створювати односторінкові застосунки (SPA). Їх можна розгортати через [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) або сервіс статичного хостингу та вони не потребують сервера. Якщо ви хочете використати функції, для яких потрібен сервер (наприклад, SSR — рендеринг із боку сервера), то можна ввімкнути окремі маршрути без переписування застосунку.
2020

2121
</Note>
2222

2323
### Next.js (App Router) {/*nextjs-app-router*/}
2424

25-
**[Next.js's App Router](https://nextjs.org/docs) is a React framework that takes full advantage of React's architecture to enable full-stack React apps.**
25+
**[App Router від Next.js's](https://nextjs.org/docs) — це React-фреймворк, який повністю використовує переваги архітектури React, щоб уможливлювати React-застосунки повного стеку.**
2626

2727
<TerminalBlock>
2828
npx create-next-app@latest
2929
</TerminalBlock>
3030

31-
Next.js is maintained by [Vercel](https://vercel.com/). You can [deploy a Next.js app](https://nextjs.org/docs/app/building-your-application/deploying) to any Node.js or serverless hosting, or to your own server. Next.js also supports [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) which doesn't require a server. Vercel additionally provides opt-in paid cloud services.
31+
Next.js підтримується командою [Vercel](https://vercel.com/). [Розгорнути застосунок Next.js](https://nextjs.org/docs/app/building-your-application/deploying) можна на будь-якому Node.js- або безсерверному хостингу, а також на власному сервері. Також Next.js підтримує [статичне експортування](https://nextjs.org/docs/app/building-your-application/deploying/static-exports), якому не потрібен сервер. На додачу Vercel пропонує необов'язкові платні хмарні послуги.
3232

3333
### React Router (v7) {/*react-router-v7*/}
3434

35-
**[React Router](https://reactrouter.com/start/framework/installation) is the most popular routing library for React and can be paired with Vite to create a full-stack React framework**. It emphasizes standard Web APIs and has several [ready to deploy templates](https://github.com/remix-run/react-router-templates) for various JavaScript runtimes and platforms.
35+
**[React Router](https://reactrouter.com/start/framework/installation) — це найпопулярніша бібліотека маршрутизації для React, яку можна поєднати з Vite для створення повноцінного React-фреймворку**. Він зосереджується на стандартних вебінтерфейсах і має кілька [готових до розгортання шаблонів](https://github.com/remix-run/react-router-templates) для різних середовищ і платформ JavaScript.
3636

37-
To create a new React Router framework project, run:
37+
Щоб створити новий проєкт з допомогою фреймворку React Router, виконайте:
3838

3939
<TerminalBlock>
4040
npx create-react-router@latest
4141
</TerminalBlock>
4242

43-
React Router is maintained by [Shopify](https://www.shopify.com).
43+
React Router підтримується [компанією Shopify](https://www.shopify.com).
4444

45-
### Expo (for native apps) {/*expo*/}
45+
### Expo (для нативних застосунків) {/*expo*/}
4646

47-
**[Expo](https://expo.dev/) is a React framework that lets you create universal Android, iOS, and web apps with truly native UIs.** It provides an SDK for [React Native](https://reactnative.dev/) that makes the native parts easier to use. To create a new Expo project, run:
47+
**[Expo](https://expo.dev/) — це React-фреймворк, що дає змогу створювати універсальні застосунки для Android, iOS і вебу з по-справжньому нативним UI.** Він пропонує набір інструментів для [React Native](https://reactnative.dev/), завдяки якому цими нативними частинами легше користуватися. Щоб створити новий проєкт Expo, виконайте:
4848

4949
<TerminalBlock>
5050
npx create-expo-app@latest
5151
</TerminalBlock>
5252

53-
If you're new to Expo, check out the [Expo tutorial](https://docs.expo.dev/tutorial/introduction/).
53+
Якщо Expo — це для вас щось нове, перегляньте [підручник Expo](https://docs.expo.dev/tutorial/introduction/).
5454

55-
Expo is maintained by [Expo (the company)](https://expo.dev/about). Building apps with Expo is free, and you can submit them to the Google and Apple app stores without restrictions. Expo additionally provides opt-in paid cloud services.
55+
Expo підтримується [компанією Expo](https://expo.dev/about). Розробляти застосунки за допомогою Expo можна безкоштовно, і їх можна подавати до каталогів застосунків Google і Apple без жодних обмежень. На додачу Expo пропонує необов'язкові платні хмарні послуги.
5656

5757

58-
## Other options {/*other-options*/}
58+
## Інші варіанти {/*other-options*/}
5959

60-
There are other up-and-coming frameworks that are working towards our full stack React vision:
60+
Є й інші перспективні фреймворки, які працюють над нашим баченням повного стеку з React:
6161

62-
- [TanStack Start (Beta)](https://tanstack.com/): TanStack Start is a full-stack React framework powered by TanStack Router. It provides a full-document SSR, streaming, server functions, bundling, and more using tools like Nitro and Vite.
63-
- [RedwoodJS](https://redwoodjs.com/): Redwood is a full stack React framework with lots of pre-installed packages and configuration that makes it easy to build full-stack web applications.
62+
- [TanStack Start (бета-версія)](https://tanstack.com/): TanStack Start — це React-фреймворк повного стеку на основі TanStack Router. Він надає повнодокументний SSR, потокове передавання, серверні функції, збирання тощо за допомогою інструментів як Nitro та Vite.
63+
- [RedwoodJS](https://redwoodjs.com/): Redwood — це React-фреймворк повного стеку із великою кількістю попередньо встановлених пакетів і налаштувань, що дає змогу легко створювати вебзастосунки повного стеку.
6464

6565
<DeepDive>
6666

67-
#### Which features make up the React team’s full-stack architecture vision? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
67+
#### З яких функцій складається бачення архітектури повного стеку від команди React? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
6868

69-
Next.js's App Router bundler fully implements the official [React Server Components specification](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md). This lets you mix build-time, server-only, and interactive components in a single React tree.
69+
Бандлер App Router від Next.js повністю реалізує офіційну [специфікацію серверних компонентів React](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md). Це дає змогу поєднувати компоненти, що виконуються під час збирання, ті, що працюють суто на сервері, та інтерактивні компоненти в єдине дерево React.
7070

71-
For example, you can write a server-only React component as an `async` function that reads from a database or from a file. Then you can pass data down from it to your interactive components:
71+
Наприклад, можна написати суто серверний компонент React як `async` функцію, що зчитує дані з бази даних або з файлу. Потім можна передати дані до інтерактивних компонентів:
7272

7373
```js
74-
// This component runs *only* on the server (or during the build).
74+
// Цей компонент виконується *лише* на сервері (або під час збирання).
7575
async function Talks({ confId }) {
76-
// 1. You're on the server, so you can talk to your data layer. API endpoint not required.
76+
// 1. Ви на сервері, тож можете спілкуватися зі своїм шаром даних. Наявність API — необов'язкова.
7777
const talks = await db.Talks.findAll({ confId });
7878

79-
// 2. Add any amount of rendering logic. It won't make your JavaScript bundle larger.
79+
// 2. Додавайте будь-яку кількість логіки рендерингу. Це не збільшить ваш бандл із JavaScript.
8080
const videos = talks.map(talk => talk.video);
8181

82-
// 3. Pass the data down to the components that will run in the browser.
82+
// 3. Передайте дані до компонентів, що виконаються в браузері.
8383
return <SearchableVideoList videos={videos} />;
8484
}
8585
```
8686

87-
Next.js's App Router also integrates [data fetching with Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). This lets you specify a loading state (like a skeleton placeholder) for different parts of your user interface directly in your React tree:
87+
App Router від Next.js також інтегрує [отримання даних із Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). Це дає змогу задати стан завантаження (наприклад, каркасний елемент для заповнення (skeleton placeholder)) для різних частин інтерфейсу безпосередньо в дереві React:
8888

8989
```js
9090
<Suspense fallback={<TalksLoading />}>
9191
<Talks confId={conf.id} />
9292
</Suspense>
9393
```
9494

95-
Server Components and Suspense are React features rather than Next.js features. However, adopting them at the framework level requires buy-in and non-trivial implementation work. At the moment, the Next.js App Router is the most complete implementation. The React team is working with bundler developers to make these features easier to implement in the next generation of frameworks.
95+
Серверні компоненти та Suspense — це радше функції React, аніж Next.js. Проте їхнє залучення на рівні фреймворку вимагає нетривіальних зусиль для реалізації та підтримування. Наразі App Router від Next.js — це найповніша імплементація. Команда React працює разом із розробниками бандлерів, щоб було легше реалізувати ці функції в наступному поколінні фреймворків.
9696

9797
</DeepDive>
9898

9999
<Note>
100100

101101

102-
#### Do you recommend Vite? {/*do-you-recommend-vite*/}
102+
#### Чи рекомендуєте Vite? {/*do-you-recommend-vite*/}
103103

104-
We provide several Vite-based recommendations.
104+
Ми пропонуємо кілька рекомендацій для Vite.
105105

106-
React Router v7 is a Vite based framework which allows you to use Vite's fast development server and build tooling with a framework that provides routing and data fetching. Just like the other frameworks we recommend, you can build a SPA with React Router v7.
106+
React Router v7 — це фреймворк на основі Vite, який дає вам змогу використовувати швидкий сервер розробки Vite та налаштувати все за допомогою фреймворку, який забезпечує маршрутизацію та отримання даних. Як і в інших фреймворках, які ми рекомендуємо, ви можете створити SPA за допомогою React Router v7.
107107

108-
We also recommend using Vite when [adding React to an existing project](/learn/add-react-to-an-existing-project), or [building a framework](/learn/building-a-react-framework).
108+
Ми також рекомендуємо використовувати Vite під час [додавання React до наявного проєкту](/learn/add-react-to-an-existing-project) або [побудови фреймворку](/learn/building-a-react-framework).
109109

110-
Just like Svelte has Sveltekit, Vue has Nuxt, and Solid has SolidStart, React recommends using a framework that integrates with build tools like Vite for new projects.
110+
Подібно до того, як у Svelte є Sveltekit, у Vue Nuxt, а у Solid SolidStart, React рекомендує використовувати для нових проєктів фреймворк, який легко інтегрується з інструментами збірки, як-от Vite.
111111

112112
</Note>
113113

114114
-----
115115

116-
_If you’re a framework author interested in being included on this page, [please let us know](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._
116+
_Якщо ви автор фреймворку та бажаєте додати його на цю сторінку, [будь ласка, напишіть нам](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._

src/sidebarLearn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"path": "/learn/installation",
2626
"routes": [
2727
{
28-
"title": "Creating a React App",
28+
"title": "Створення React-застосунку",
2929
"path": "/learn/creating-a-react-app"
3030
},
3131
{

0 commit comments

Comments
 (0)