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
React components can no longer be called directly like this. Instead [you can use JSX](/docs/jsx-in-depth.html).
19
+
Компоненты React больше не могут вызываться таким образом. Вместо этого [вы можете использовать JSX](/docs/jsx-in-depth.html).
20
20
21
21
```javascript
22
22
var React =require('react');
@@ -27,9 +27,9 @@ function render() {
27
27
}
28
28
```
29
29
30
-
## Without JSX {#without-jsx}
30
+
## Без JSX {#without-jsx}
31
31
32
-
If you don't want to, or can't use JSX, then you'll need to wrap your component in a factory before calling it:
32
+
Если вы не хотите или не можете использовать JSX, тогда перед вызовом компонента вам необходимо перевести его в фабрику:
33
33
34
34
```javascript
35
35
var React =require('react');
@@ -40,11 +40,11 @@ function render() {
40
40
}
41
41
```
42
42
43
-
This is an easy upgrade path if you have a lot of existing function calls.
43
+
Это простой путь обновления, если у вас много вызовов функций.
44
44
45
-
## Dynamic components without JSX {#dynamic-components-without-jsx}
45
+
## Динамические компоненты без JSX {#dynamic-components-without-jsx}
46
46
47
-
If you get a component class from a dynamic source, then it might be unnecessary to create a factory that you immediately invoke. Instead you can just create your element inline:
47
+
Если вы получаете класс компонента из динамического источника, то необязательно создавать фабрику, на которую вы немедленно ссылаетесь. Вместо этого вы можете напрямую создать элемент:
48
48
49
49
```javascript
50
50
var React =require('react');
@@ -54,6 +54,6 @@ function render(MyComponent) {
54
54
}
55
55
```
56
56
57
-
## In Depth {#in-depth}
57
+
## Подробнее {#in-depth}
58
58
59
-
[Read more about WHY we're making this change.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
59
+
[Узнайте подробнее, ПОЧЕМУ мы делаем это изменение.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
0 commit comments