From 7624f1a9edd1a13217c2628ee21c06b7d22e5d9e Mon Sep 17 00:00:00 2001 From: Taras Rodynenko Date: Sun, 31 Mar 2019 22:05:17 +0300 Subject: [PATCH 01/22] translate JSX in Depth - Intro[1/4] --- content/docs/jsx-in-depth.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/docs/jsx-in-depth.md b/content/docs/jsx-in-depth.md index 3dcf2ac26..0a9308d56 100644 --- a/content/docs/jsx-in-depth.md +++ b/content/docs/jsx-in-depth.md @@ -1,6 +1,6 @@ --- id: jsx-in-depth -title: JSX In Depth +title: Детальніше про JSX permalink: docs/jsx-in-depth.html redirect_from: - "docs/jsx-spread.html" @@ -13,7 +13,7 @@ redirect_from: - "docs/jsx-in-depth-ko-KR.html" --- -Fundamentally, JSX just provides syntactic sugar for the `React.createElement(component, props, ...children)` function. The JSX code: +JSX - синтаксичний цукор над функцією `React.createElement(component, props, ...children)`. Наступний JSX-код: ```js @@ -21,7 +21,7 @@ Fundamentally, JSX just provides syntactic sugar for the `React.createElement(co ``` -compiles into: +скомпіюється в: ```js React.createElement( @@ -31,13 +31,13 @@ React.createElement( ) ``` -You can also use the self-closing form of the tag if there are no children. So: +Також ви можете використати самозакриваючийся тег, якщо відсутні дочірні елементи. Тому код: ```js
``` -compiles into: +скомпілюється в: ```js React.createElement( @@ -47,7 +47,7 @@ React.createElement( ) ``` -If you want to test out how some specific JSX is converted into JavaScript, you can try out [the online Babel compiler](babel://jsx-simple-example). +Якщо ви бажаєте перевірити як JSX-код компілюється в JavaScript, спробуйте [онлайн-компілятор Babel](babel://jsx-simple-example). ## Specifying The React Element Type {#specifying-the-react-element-type} @@ -268,7 +268,7 @@ const App = () => { In the example above, the `kind` prop is safely consumed and *is not* passed on to the `