Skip to content

Commit 1815123

Browse files
authored
Merge pull request #78 from m1m6/react-without-jsx
[Done] React without JSX
2 parents 1771791 + 3f3e820 commit 1815123

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

content/docs/nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
- id: react-without-es6
6363
title: React Without ES6
6464
- id: react-without-jsx
65-
title: React Without JSX
65+
title: React بدون JSX
6666
- id: reconciliation
6767
title: Reconciliation
6868
- id: refs-and-the-dom

content/docs/react-without-jsx.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
id: react-without-jsx
3-
title: React Without JSX
3+
title: React بدون JSX
44
permalink: docs/react-without-jsx.html
55
---
66

7-
JSX is not a requirement for using React. Using React without JSX is especially convenient when you don't want to set up compilation in your build environment.
7+
JSX ليست متطلب لإستخدام React .حيث يمكنك إستخدام React بدون JSX بشكل خاص عندما لاترغب في إعداد مرحلة التصريف في بيئة البناء لديك.
88

9-
Each JSX element is just syntactic sugar for calling `React.createElement(component, props, ...children)`. So, anything you can do with JSX can also be done with just plain JavaScript.
9+
كل عنصر من JSX هو فقط تجميل صياغي لمناداة الداله `React.createElement(component, props, ...children)`. اذاً، أي شيء يمكن تطبيقه باستخدام JSX من الممكن ايضاً تطبيقه بإستخدام javascript.
1010

11-
For example, this code written with JSX:
11+
كمثال، هذه الشيفرة مكتوبه باستخدام JSX:
1212

1313
```js
1414
class Hello extends React.Component {
@@ -23,7 +23,7 @@ ReactDOM.render(
2323
);
2424
```
2525

26-
can be compiled to this code that does not use JSX:
26+
وتصرف الى شيفرة على النحو التالي بدون JSX:
2727

2828
```js
2929
class Hello extends React.Component {
@@ -38,11 +38,11 @@ ReactDOM.render(
3838
);
3939
```
4040

41-
If you're curious to see more examples of how JSX is converted to JavaScript, you can try out [the online Babel compiler](babel://jsx-simple-example).
41+
إذا كنت مهتماً لرؤية المزيد من الامثلة عن كيفية تصريف شيفرة JSX الى javascript, فبإمكانك تجربة [مصرف Babel على الإنترنت](babel://jsx-simple-example).
4242

43-
The component can either be provided as a string, or as a subclass of `React.Component`, or a plain function for stateless components.
43+
يمكن تزويد المكون كسلسلة نصية, أو كصنف فرعي من `React.Component`، أو كدالة مجردة من أجل المُكونات بدون الحالة.
4444

45-
If you get tired of typing `React.createElement` so much, one common pattern is to assign a shorthand:
45+
إن تعبت من كثرة كتابة `React.createElement`، فمن الأساليب الشائعة هي الطريقة المختصرة التالية:
4646

4747
```js
4848
const e = React.createElement;
@@ -53,7 +53,7 @@ ReactDOM.render(
5353
);
5454
```
5555

56-
If you use this shorthand form for `React.createElement`, it can be almost as convenient to use React without JSX.
56+
إذا إستخدمت هذه الصيغة المختصرة (الثابت e) لأجل `React.createElement`، فسيكون من المناسب تمامًا استخدام React بدون JSX.
5757

58-
Alternatively, you can refer to community projects such as [`react-hyperscript`](https://github.com/mlmorg/react-hyperscript) and [`hyperscript-helpers`](https://github.com/ohanhi/hyperscript-helpers) which offer a terser syntax.
58+
بدلاً من ذلك، تستطيع الرجوع إلى مشاريع مجتمع React مثل [`react-hyperscript`](https://github.com/mlmorg/react-hyperscript) و [`hyperscript-helpers`](https://github.com/ohanhi/hyperscript-helpers) والتي توفر صياغة مختصرة أكثر.
5959

content/docs/reference-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ redirect_from:
3838
- [`createElement()`](#createelement)
3939
- [`createFactory()`](#createfactory)
4040

41-
See [Using React without JSX](/docs/react-without-jsx.html) for more information.
41+
إنظر في [إستخدام React بدون JSX](/docs/react-without-jsx.html) للمزيد من المعلومات.
4242

4343
### تحويل العناصر {#transforming-elements}
4444

0 commit comments

Comments
 (0)