Skip to content

Commit 4298264

Browse files
committed
translate creating-a-react-app
1 parent 35cdfb0 commit 4298264

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
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-
If your app has constraints not well-served by existing frameworks, you prefer to build your own framework, or you just want to learn the basics of a React app, you can [build a React app from scratch](/learn/build-a-react-app-from-scratch).
11+
إذا كانت متطلبات تطبيقك لا تُلبَّى جيدًا بالأُطر الحالية، أو كنت تفضّل بناء إطارك الخاص، أو أردت فقط تعلم أساسيات تطبيق React، يمكنك [بناء تطبيق React من الصفر](/learn/build-a-react-app-from-scratch).
1212

13-
## Full-stack frameworks {/*full-stack-frameworks*/}
13+
## الأُطر الشاملة (Full-stack) {/*full-stack-frameworks*/}
1414

15-
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.
15+
تدعم هذه الأُطر الموصى بها جميع الميزات التي تحتاجها لنشر تطبيقك وتوسيعه في بيئة الإنتاج. لقد دمجت أحدث ميزات React وتستفيد من بنية React.
1616

1717
<Note>
1818

19-
#### Full-stack frameworks do not require a server. {/*react-frameworks-do-not-require-a-server*/}
19+
#### لا تتطلب الأُطر الشاملة وجود خادم. {/*react-frameworks-do-not-require-a-server*/}
2020

21-
All the frameworks on this page support client-side rendering ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR)), single-page apps ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA)), and static-site generation ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)). These apps can be deployed to a [CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN) or static hosting service without a server. Additionally, these frameworks allow you to add server-side rendering on a per-route basis, when it makes sense for your use case.
21+
تدعم جميع الأُطر المدرجة في هذه الصفحة التصيير على جانب العميل ([CSR](https://developer.mozilla.org/en-US/docs/Glossary/CSR))، وتطبيقات الصفحة الواحدة ([SPA](https://developer.mozilla.org/en-US/docs/Glossary/SPA))، وتوليد المواقع الثابتة ([SSG](https://developer.mozilla.org/en-US/docs/Glossary/SSG)). يمكن نشر هذه التطبيقات على شبكة توصيل محتوى ([CDN](https://developer.mozilla.org/en-US/docs/Glossary/CDN)) أو على خدمات استضافة ثابتة دون الحاجة إلى خادم. بالإضافة إلى ذلك، تتيح هذه الأُطر إضافة التصيير على الخادم على مستوى المسار عندما يكون ذلك مناسبًا لحالة الاستخدام الخاصة بك.
2222

23-
This allows you to start with a client-only app, and if your needs change later, you can opt-in to using server features on individual routes without rewriting your app. See your framework's documentation for configuring the rendering strategy.
23+
هذا يمكّنك من البدء بتطبيق طرف-عميل فقط، وإذا تغيرت احتياجاتك لاحقًا يمكنك تفعيل ميزات الخادم لمسارات معينة دون إعادة كتابة التطبيق بأكمله. راجع وثائق إطار عملك لتكوين استراتيجية التصيير.
2424

2525
</Note>
2626

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

29-
**[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.**
29+
**[App Router في Next.js](https://nextjs.org/docs) هو إطار React يستفيد بالكامل من بنية React لتمكين تطبيقات React متكاملة (Full-stack).**
3030

3131
<TerminalBlock>
3232
npx create-next-app@latest
3333
</TerminalBlock>
3434

35-
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 hosting provider that supports Node.js or Docker containers, 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.
35+
يُطوَّر Next.js ويُصان بواسطة [Vercel](https://vercel.com/). يمكنك [نشر تطبيق Next.js](https://nextjs.org/docs/app/building-your-application/deploying) إلى أي مزود استضافة يدعم Node.js أو حاويات Docker، أو إلى خادم خاص بك. كما يدعم Next.js أيضًا [التصدير الثابت](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) الذي لا يتطلب خادمًا.
3636

37-
### React Router (v7) {/*react-router-v7*/}
37+
### React Router (الإصدار 7) {/*react-router-v7*/}
3838

39-
**[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.
39+
**[React Router](https://reactrouter.com/start/framework/installation) هو أشهر مكتبة توجيه (routing) في React ويمكن ربطه مع Vite لإنشاء إطار React متكامل.** يركّز على واجهات برمجة الويب القياسية ويحتوي على عدة [قوالب جاهزة للنشر](https://github.com/remix-run/react-router-templates) لأنظمة تشغيل جافاسكربت ومنصات مختلفة.
4040

41-
To create a new React Router framework project, run:
41+
لإنشاء مشروع إطار جديد باستخدام React Router، شغِّل:
4242

4343
<TerminalBlock>
4444
npx create-react-router@latest
4545
</TerminalBlock>
4646

47-
React Router is maintained by [Shopify](https://www.shopify.com).
47+
تُصان React Router بواسطة [Shopify](https://www.shopify.com).
4848

49-
### Expo (for native apps) {/*expo*/}
49+
### Expo (للتطبيقات الأصلية) {/*expo*/}
5050

51-
**[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:
51+
**[Expo](https://expo.dev/) هو إطار React يتيح لك إنشاء تطبيقات Android وiOS والويب بواجهات أصلية حقيقية.** يوفر Expo مجموعة أدوات SDK لـ [React Native](https://reactnative.dev/) تجعل الأجزاء الأصلية أسهل في الاستخدام. لإنشاء مشروع Expo جديد، شغّل:
5252

5353
<TerminalBlock>
5454
npx create-expo-app@latest
5555
</TerminalBlock>
5656

57-
If you're new to Expo, check out the [Expo tutorial](https://docs.expo.dev/tutorial/introduction/).
57+
إذا كنت جديدًا على Expo، اطلع على [دليل Expo التعليمي](https://docs.expo.dev/tutorial/introduction/).
5858

59-
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.
59+
يُصان Expo بواسطة [Expo (الشركة)](https://expo.dev/about). بناء التطبيقات باستخدام Expo مجاني، ويمكنك تقديمها إلى متاجر Google وApple بدون قيود. كما يوفر Expo خدمات سحابية مدفوعة اختيارية.
6060

6161

62-
## Other frameworks {/*other-frameworks*/}
62+
## أُطر أخرى {/*other-frameworks*/}
6363

64-
There are other up-and-coming frameworks that are working towards our full stack React vision:
64+
هناك أُطر ناشئة أخرى تعمل نحو رؤية React الشاملة (full-stack):
6565

66-
- [TanStack Start (Beta)](https://tanstack.com/start/): 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.
67-
- [RedwoodSDK](https://rwsdk.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.
66+
- [TanStack Start (Beta)](https://tanstack.com/start/): TanStack Start هو إطار React شامل يعتمد على TanStack Router. يوفر SSR كاملًا، والبث (streaming)، ودوال الخادم، والتجميع، والمزيد باستخدام أدوات مثل Nitro وVite.
67+
- [RedwoodSDK](https://rwsdk.com/): Redwood هو إطار React شامل يأتي مع العديد من الحزم والتهيئات المسبقة التي تُسهِم في بناء تطبيقات ويب متكاملة بسهولة.
6868

6969
<DeepDive>
7070

71-
#### Which features make up the React team’s full-stack architecture vision? {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
71+
#### ما هي الميزات التي تشكّل رؤية فريق React لبنية Full-stack؟ {/*which-features-make-up-the-react-teams-full-stack-architecture-vision*/}
7272

73-
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.
73+
يقوم مُجمِّع App Router في Next.js بتنفيذ مواصفة [مكونات خادم React (React Server Components)](https://github.com/reactjs/rfcs/blob/main/text/0188-server-components.md) بشكل كامل. يتيح هذا مزج المكونات التي تعمل أثناء وقت البناء، والمكونات الخاصة بالخادم، والمكونات التفاعلية داخل شجرة React واحدة.
7474

75-
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:
75+
على سبيل المثال، يمكنك كتابة مكوّن يعمل على الخادم فقط كدالة `async` تقرأ من قاعدة بيانات أو من ملف، ثم تمرّر البيانات إلى مكوناتك التفاعلية:
7676

7777
```js
7878
// This component runs *only* on the server (or during the build).
@@ -88,26 +88,26 @@ async function Talks({ confId }) {
8888
}
8989
```
9090

91-
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:
91+
يُدَوِّج App Router في Next.js أيضًا دمج [جلب البيانات مع Suspense](/blog/2022/03/29/react-v18#suspense-in-data-frameworks). يتيح لك ذلك تحديد حالة تحميل (مثل عنصر نائب skeleton) لأجزاء مختلفة من واجهة المستخدم مباشرةً داخل شجرة React:
9292

9393
```js
9494
<Suspense fallback={<TalksLoading />}>
9595
<Talks confId={conf.id} />
9696
</Suspense>
9797
```
9898

99-
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.
99+
تُعدّ مكونات الخادم وSuspense ميزات في React نفسها وليس ميزات حصرية لـ Next.js. ومع ذلك، يتطلب اعتمادها على مستوى الإطار موافقة وجهد تنفيذ غير تافه. في الوقت الحالي، يُعتبر App Router في Next.js التنفيذ الأكثر اكتمالًا. يعمل فريق React مع مطوّري المجمعات لتسهيل تنفيذ هذه الميزات في الجيل القادم من الأُطر.
100100

101101
</DeepDive>
102102

103-
## Start From Scratch {/*start-from-scratch*/}
103+
## البدء من الصفر {/*start-from-scratch*/}
104104

105-
If your app has constraints not well-served by existing frameworks, you prefer to build your own framework, or you just want to learn the basics of a React app, there are other options available for starting a React project from scratch.
105+
إذا كانت متطلبات تطبيقك لا تُلبَّى جيدًا بالأُطر الحالية، أو كنت تفضّل بناء إطارك الخاص، أو أردت تعلم أساسيات تطبيق React، فهناك خيارات متاحة لبدء مشروع React من الصفر.
106106

107-
Starting from scratch gives you more flexibility, but does require that you make choices on which tools to use for routing, data fetching, and other common usage patterns. It's a lot like building your own framework, instead of using a framework that already exists. The [frameworks we recommend](#full-stack-frameworks) have built-in solutions for these problems.
107+
البدء من الصفر يمنحك مرونة أكبر، لكنه يتطلب منك اتخاذ قرارات حول الأدوات التي ستستخدمها للتوجيه، وجلب البيانات، وأنماط الاستخدام الشائعة الأخرى. إنه يشبه إلى حد بعيد بناء إطار عمل بنفسك بدلًا من استخدام إطار جاهز. الأُطر التي نوصي بها لديها حلول مدمجة لهذه المشكلات.
108108

109-
If you want to build your own solutions, see our guide to [build a React app from Scratch](/learn/build-a-react-app-from-scratch) for instructions on how to set up a new React project starting with a build tool like [Vite](https://vite.dev/), [Parcel](https://parceljs.org/), or [RSbuild](https://rsbuild.dev/).
109+
إذا أردت بناء حلولك بنفسك، اطلع على دليلنا [لبناء تطبيق React من الصفر](/learn/build-a-react-app-from-scratch) للحصول على تعليمات حول إعداد مشروع React جديد بدءًا من أداة بناء مثل [Vite](https://vite.dev/)، أو [Parcel](https://parceljs.org/)، أو [Rsbuild](https://rsbuild.dev/).
110110

111111
-----
112112

113-
_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+)._
113+
_إذا كنت مؤلف إطار عمل وترغب في إدراجه في هذه الصفحة، [نرجو إعلامنا](https://github.com/reactjs/react.dev/issues/new?assignees=&labels=type%3A+framework&projects=&template=3-framework.yml&title=%5BFramework%5D%3A+)._

0 commit comments

Comments
 (0)