{"id":297881,"date":"2020-01-29T15:00:12","date_gmt":"2020-01-29T15:00:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=297881"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-01-29T15:00:12","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=297881","title":{"rendered":"\u0414\u0435\u0442\u0441\u043a\u0438\u0439 ReactJS \u0438\u0437 135 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486122\/\">\u041f\u0440\u043e ReactJS \u0441\u0442\u0430\u0442\u0435\u0439 \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u043e. \u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443, \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u043d\u0430\u0447\u0430\u043b\u043e, \u0433\u0434\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u0435\u0433\u043e \u0441\u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u044f. \u041c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/301-1.ru\/uploads\/image\/img_files\/2018_01_22_17_01_53_5f9e50ecc0d61ba93b74559ed4caab4a.jpeg\" alt=\"JavaScript for Babies\" \/><\/div>\n<p>  \u041e\u0434\u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0430 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430 \u043c\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0438 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u0432\u0435\u0434\u043e\u043c\u044b\u0439 \u0437\u0432\u0435\u0440\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u044f \u0431\u044b \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0448\u0435\u0432\u0435\u043b\u0438\u043b\u0441\u044f \u0438 \u0431\u044b\u043b \u0432 \u0447\u0435\u043c-\u0442\u043e \u0441\u0445\u043e\u0436 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u043c. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0435\u0440 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u0441\u043e\u043f\u043e\u0434\u0432\u0438\u0433\u043b\u043e \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043c\u0438\u043a\u0440\u043e\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043d\u0430 JavaScript. \u041d\u043e \u0435\u0441\u043b\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0438\u0437\u0443\u0447\u0438\u0442\u044c JS. <\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u043c\u043e\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439\/\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u0412 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u044d\u043a\u0435\u043d\u0434-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0432 \u043b\u0443\u0447\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u0430\u043a JSON \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e, \u0430 \u0442\u0430\u043c \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0441 \u043d\u0438\u043c\u0438, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435. \u041d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u043e ID \u043d\u0443\u0436\u043d\u044b\u0435 HTML-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0443\u0437\u043b\u044b. \u041e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0442 \u0436\u0438\u0437\u043d\u044c JavaScript-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438. <\/p>\n<p>  \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u0439 PHP-Slim-framework, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0430\u043b\u0435\u043a \u043e\u0442 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e, \u043d\u043e \u043c\u043d\u0435 \u043e\u043d \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0432 PHP-\u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0438\u0441\u0442\u043e\u043a\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 ReactJS. \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b \u0432 135 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043a\u043e\u0434\u0430 \u043d\u0430\u0437\u0432\u0430\u043b \u0435\u0433\u043e bots.js \u0438 \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u043a \u0432 React, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0447\u0442\u043e-\u0442\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u041d\u0430\u0437\u0432\u0430\u043b \u044f \u0435\u0433\u043e ReactKids. <\/p>\n<p>  \u0418\u0434\u0435\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c javascript \u0438 \u0441\u043b\u0435\u0434\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. <\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 HTML \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f:<\/p>\n<pre><code class=\"xml\">&lt;!doctype html&gt; &lt;html&gt; \t&lt;head&gt; \t\t&lt;meta charset=&quot;utf-8&quot;&gt; \t\t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt; \t\t&lt;title&gt;HelloReactKids&lt;\/title&gt; \t\t&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot;&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;div id=&quot;root&quot;&gt;&lt;\/div&gt; \t\t&lt;script src=&quot;js\/bots.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;js\/pict.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;js\/navbar.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;js\/label.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;js\/button.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;js\/app.js&quot;&gt;&lt;\/script&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c id=root \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c bots.js, \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b (\u0438\u043b\u0438 \u0441\u0430\u043c\u0438 \u0438\u0445 \u043f\u0438\u0448\u0435\u043c) \u0438 \u0432 app.js \u0432\u0441\u0435 \u044d\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c.<\/p>\n<p>  \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432 ReactKids \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">function Button(attr) { \t\/\/ attribute components default values \tif(!attr.labelButton) attr.labelButton = &quot;Click Me&quot; \t \treturn elem( \t\t&quot;button&quot;, \t\t{ \t\t\tpadding: &quot;0.65rem&quot;, \t\t\tmarginTop: &quot;0.4rem&quot;, \t\t\tcolor: &quot;gray&quot;, \t\t\tborder: &quot;1px solid gray&quot;, \t\t\tborderRadius: &quot;0.5rem&quot;, \t\t\tbackground: &quot;#fff&quot;, \t\t\tfontSize: &quot;large&quot;, \t\t\tcursor: &quot;pointer&quot;, \t\t}, \t\t{ \t\t\tid: &quot;btn1&quot;, \t\t\tclick: btn1Click, \t\t},  \t\tattr.labelButton \t) }  function btn1Click(e) { \tconsole.log(&quot;Clicked!&quot;) \tsetAttr(Label({labelContent: &quot;i-i-i!!!&quot;}), 0.6) }<\/code><\/pre>\n<p>  \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 params \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f attr. <br \/>  \u0412\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e\u0442 attr \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f. \u041d\u0443 \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0442\u0435, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0440\u0435\u0430\u043a\u0442\u043e\u043c \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u043f\u043e \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u00ab\u0441\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u00bb \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c. \u0422\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0438 \u0442\u0430\u043a \u0434\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445. \u041e\u0434\u043d\u0430\u043a\u043e \u0438\u0445 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043f\u0430\u043a\u043e\u0432\u043e\u043a \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c. <\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 JSON (\u043e\u0431\u044b\u0447\u043d\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u043c) \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 JS-\u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u043a\u0443\u0434\u0430-\u0442\u043e \u0434\u0435\u0442\u044c. \u0412\u043e\u0442 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f params \u0432 React \u0438 attr \u0432 \u043d\u0430\u0448\u0435\u0439 \u0434\u0435\u0442\u0441\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<br \/>  \u0412 attr \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0445\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c JSON \u043e\u0431\u044a\u0435\u043a\u0442, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e <s>\u043b\u0443\u0447\u0448\u0438\u0435<\/s> \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438. <\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0435 \u0432\u0437\u0440\u043e\u0441\u043b\u043e\u0433\u043e React \u2014 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 attr \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0435 \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0434\u0435\u043b\u0430. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 elem(), \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 bots.js. \u0412 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\u0418\u043c\u044f \u0442\u0435\u0433\u0430.<\/li>\n<li>\u041e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 (\u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 JS)<\/li>\n<li>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0434\u043b\u044f \u0442\u0435\u0433\u0430.<\/li>\n<li>\u0422\u0435\u043a\u0441\u0442, \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0435\u0433 \u0438\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 (\u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439) \u0438\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f.<\/li>\n<\/ol>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 app.js:<\/p>\n<pre><code class=\"javascript\">var attr = { \tlabelContent: &quot;Hello React Kids&quot;, \tlabelButton: &quot;This button&quot;, }  rend(document.getElementById(&quot;root&quot;), App(attr))  function App(attr) { \treturn elem( \t\t&quot;div&quot;,  \t\t{ \t\t\tfontFamily: &quot;segoe ui&quot;, \t\t\tcolor: &quot;gray&quot;, \t\t\ttextAlign: &quot;center&quot;, \t\t}, \t\t{ \t\t\tid: &quot;app&quot;, \t\t}, \t\t[ \t\t\tNavbar(attr), \t\t\tPict(attr), \t\t\tLabel(attr), \t\t\tButton(attr), \t\t] \t) } <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e. \u0412\u043e\u0442 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435:<\/p>\n<pre><code class=\"javascript\">function App(attr) { \tvar cpic1 = CirclePict({id: &quot;img1&quot;, src: &quot;.\/img\/img1.jpg&quot;, height: &quot;200px&quot;}) \tvar cpic2 = CirclePict({id: &quot;img1&quot;, src: &quot;.\/img\/img2.jpg&quot;, height: &quot;200px&quot;}) \tvar cpic3 = CirclePict({id: &quot;img1&quot;, src: &quot;.\/img\/img3.jpg&quot;, height: &quot;200px&quot;}) \t \tvar txt1 = &quot;\u041a\u0442\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0434\u0435\u0442\u0441\u043a\u043e\u0435 \u0448\u0430\u043c\u043f\u0430\u043d\u0441\u043a\u043e\u0435. \u0411\u044b\u0432\u0430\u0435\u0442 \u043b\u0438 \u043e\u0442 \u043d\u0435\u0433\u043e \u043f\u043e\u0445\u043c\u0435\u043b\u044c\u0435 \u0438 \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0433\u0430\u0437\u0438\u0440\u043e\u0432\u043a\u0438.&quot;; \tvar txt2 = &quot;\u041a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0414\u0435\u0434 \u041c\u043e\u0440\u043e\u0437, \u0437\u0430\u0447\u0435\u043c \u0435\u043c\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u0442\u0438\u0445\u0438 \u0438 \u043a\u0430\u043a\u043e\u0432\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0434\u0430\u0440\u043a\u0430.&quot;; \t \treturn elem( \t\t&quot;div&quot;,  \t\t{ \t\t\tfontFamily: &quot;segoe ui&quot;, \t\t\tcolor: &quot;gray&quot;, \t\t}, \t\t{ \t\t\tid: &quot;app&quot;, \t\t}, \t\t[ \t\t\tPict({id: &quot;logo&quot;, src: &quot;.\/img\/logo.png&quot;, height: &quot;90%&quot;}), \t\t\tText({id: &quot;info&quot;, text: &quot;you number&quot;, direction: &quot;right&quot;}), \t\t\tLabel(attr), \t\t\tOuter({id: &quot;outer1&quot;, content: [cpic1, cpic2, cpic3]}), \t\t\tText({id: &quot;txt1&quot;, text: txt1, width: &quot;450px&quot;}), \t\t\tButton(attr), \t\t\tLabel({id: &quot;lbl2&quot;, labelContent: &quot;\u0414\u0435\u0434 \u041c\u043e\u0440\u043e\u0437 \u043f\u043e \u0432\u044b\u0437\u043e\u0432\u0443&quot;}), \t\t\tText({id: &quot;txt2&quot;, text: txt2, width: &quot;650px&quot;, direction: &quot;center&quot;}), \t\t\tRoundPict({id: &quot;well&quot;, src: &quot;.\/img\/well.jpg&quot;, height: &quot;280px&quot;, width: &quot;550&quot;}) \t\t] \t) }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043c\u044b \u0432\u043b\u043e\u0436\u0438\u043b\u0438 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 Outer 3 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 CirclePict.<\/p>\n<p>  \u0414\u0435\u0442\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 JSX. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u043d \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d \u043b\u0435\u043d\u0438\u0432\u044b\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u0438\u0448\u0435\u043c. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0442\u0435\u0433\u0438 JSX \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 JavaScript.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u0432\u043e\u0442 \u044d\u0442\u043e \u0432\u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 bots.js. \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0446\u0435\u043b\u044b\u0445 3-\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e elem() \u0438 setAttr() \u043f\u0435\u0440\u0432\u0430\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f, \u0432\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438 rend() \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 app.js.<\/p>\n<pre><code class=\"javascript\">function elem(elt, style, attr, item) { \t\/*element *\/ \tif(elt) { \t\t\/\/ \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0443\u0437\u0435\u043b, \u043a\u0430\u043a \u0438 \u0442\u0435\u0433\u0438 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435  \t\tvar el = document.createElement(elt); \t} else { \t\tconsole.log(&quot;elt fail&quot;) \t\treturn  \t} \t\/* style *\/ \tif(style) { \t\tif(typeof(style) == &quot;object&quot;) { \t\t\tfor(var itm in style) { \t\t\t\tel.style[itm] = style[itm] \t\t\t} \t\t} else { \t\t\tconsole.log(&quot;style is not object type&quot;) \t\t} \t} else { \t\tconsole.log(&quot;style fail&quot;) \t} \t\/* attr *\/ \tif(attr) { \t\tif(typeof(attr) == &quot;object&quot;) { \t\t\tfor(var itm in attr) { \t\t\t\tif(typeof(attr[itm]) == &quot;function&quot;) { \t\t\t\t\tel.addEventListener(itm, attr[itm]) \t\t\t\t} else { \t\t\t\t\t\/\/ standart \t\t\t\t\tel[itm] = attr[itm] \t\t\t\t} \t\t\t} \t\t} else { \t\t\tconsole.log(&quot;attr is not object type&quot;) \t\t} \t} else { \t\tconsole.log(&quot;attr fail (add ID for element)&quot;) \t} \t\/* item *\/ \tif(item) { \t\tif(typeof(item) == &quot;string&quot;) { \t\t\tvar text = document.createTextNode(item) \t\t\tel.appendChild(text) \t\t} else if(typeof(item) == &quot;object&quot;) { \t\t\tif(Array.isArray(item)) { \t\t\t\tif(item.length &lt; 1) { \t\t\t\t\tconsole.log(&quot;not items in array&quot;) \t\t\t\t\treturn \t\t\t\t} \t\t\t\titem.map(function(itm) { \t\t\t\t\tel.appendChild(itm) \t\t\t\t}) \t\t\t} else { \t\t\t\tel.appendChild(item) \t\t\t} \t\t} else { \t\t\tconsole.log(&quot;text is not string or object type&quot;) \t\t} \t} else { \t\tconsole.log(&quot;text fail&quot;) \t} \treturn el }<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0435\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0442\u043e\u0439 \u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0435\u043c\u0443 \u0441\u0442\u0438\u043b\u0435\u0439.<\/li>\n<li>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u0432\u0438\u0434\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/li>\n<\/ol>\n<p>  \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0438\u0445 \u0442\u0438\u043f, \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438 \u0432\u0435\u0448\u0430\u0435\u043c \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<\/p>\n<p>  \u0412\u043e\u0442 \u0432 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043c\u044b \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c setAttr(), \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0435\u0439 \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c attr. \u0422\u0443\u0442 \u043e\u0434\u043d\u043e \u043d\u043e \u2014 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 attr \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c id \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 setAttr. \u041e\u043d\u0430 \u043f\u043e id \u0435\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432 DOM.<\/p>\n<p>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f setAttr() \u2014 \u0442\u0443\u0442 \u0432\u0441\u0435 \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0432 React, \u0445\u043e\u0442\u044f \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0435\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e (\u043d\u0443 \u0438\u043b\u0438 \u043f\u043e\u0447\u0442\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e).<\/p>\n<pre><code class=\"javascript\">function setAttr(update, slow) { \tif(slow) { \t\tvar replace = document.getElementById(update.id) \t\tvar opamax = 0.99 \t\tvar opaint = 0.01 \t\tvar outslow = setInterval(function() { \t\t\topamax = opamax - opaint \t\t\tif(opamax &lt;= 0) { \t\t\t\tclearInterval(outslow) \t\t\t\tupdate.style.opacity = opamax \t\t\t\treplace.parentNode.replaceChild(update, replace) \t\t\t\tvar inslow = setInterval(function() { \t\t\t\t\topamax = opamax + opaint \t\t\t\t\tupdate.style.opacity = opamax \t\t\t\t\tif(opamax &gt;= 1) { \t\t\t\t\t\tclearInterval(inslow) \t\t\t\t\t} \t\t\t\t}, slow) \t\t\t} \t\t\treplace.style.opacity = opamax \t\t}, slow) \t} else { \t\tvar replace = document.getElementById(update.id) \t\treplace.parentNode.replaceChild(update, replace) \t} }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u0434\u0435\u0440\u0435\u0432\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0438 \u0435\u0449\u0435 \u044d\u0444\u0444\u0435\u043a\u0442 \u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0442\u044f \u0431\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u043e\u0441\u044c \u0438 \u043a\u043e\u0434 \u0431\u044b\u043b \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u043d\u0435 helloworld.<\/p>\n<p>  \u0421\u0430\u043c\u0430\u044f \u043a\u0440\u0443\u0442\u0430\u044f \u0432 \u043d\u0430\u0448\u0435\u043c \u0434\u0435\u0442\u0441\u043a\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430:<\/p>\n<pre><code class=\"javascript\">function rend(root, elem) { \troot.appendChild(elem) }<\/code><\/pre>\n<p>  \u041c\u043d\u043e\u044e \u0431\u044b\u043b\u043e \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c \u0442\u0440\u0443\u0434\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0438\u0445 \u0448\u0442\u0443\u043a \u043a\u0430\u043a React \u0447\u0438\u0441\u0442\u043e \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438. \u0423\u0434\u0438\u0432\u0438\u0432 \u0441\u043e\u0442\u043d\u0438 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u0434\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044e \u0438 \u043e\u0442\u044b\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u0435 \u043d\u0435\u0447\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435. \u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 Vue. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043d\u043e \u0435\u0449\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0431\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430. <\/p>\n<p>  \u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0438\u0437 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445, \u043d\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0436\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438 \u0432\u0441\u0435\u043c \u043a\u0442\u043e \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0441\u044f \u043a \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u044e React. \u0414\u0430 \u043f\u0440\u0438\u0431\u0443\u0434\u0435\u0442 \u0441 \u043d\u0430\u043c\u0438 \u0441\u0438\u043b\u0430!<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/486122\/\"> https:\/\/habr.com\/ru\/post\/486122\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/486122\/\">\u041f\u0440\u043e ReactJS \u0441\u0442\u0430\u0442\u0435\u0439 \u0443\u0436\u0435 \u043c\u043d\u043e\u0433\u043e. \u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044e \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0435\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443, \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u043d\u0430\u0447\u0430\u043b\u043e, \u0433\u0434\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u0435\u0433\u043e \u0441\u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u044f. \u041c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/301-1.ru\/uploads\/image\/img_files\/2018_01_22_17_01_53_5f9e50ecc0d61ba93b74559ed4caab4a.jpeg\" alt=\"JavaScript for Babies\" \/><\/div>\n<p>  \u041e\u0434\u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0430 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430 \u043c\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0438 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0437\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0435\u0432\u0435\u0434\u043e\u043c\u044b\u0439 \u0437\u0432\u0435\u0440\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u044f \u0431\u044b \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0448\u0435\u0432\u0435\u043b\u0438\u043b\u0441\u044f \u0438 \u0431\u044b\u043b \u0432 \u0447\u0435\u043c-\u0442\u043e \u0441\u0445\u043e\u0436 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u043e\u0431\u0440\u0430\u0437\u043e\u043c.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-297881","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297881"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297881\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}