{"id":1849,"date":"2021-05-24T16:33:35","date_gmt":"2021-05-24T16:33:35","guid":{"rendered":"https:\/\/lvboard.infostore.in.ua\/?page_id=1849"},"modified":"2021-05-24T17:58:47","modified_gmt":"2021-05-24T17:58:47","slug":"react","status":"publish","type":"page","link":"https:\/\/lvboard.infostore.in.ua\/?page_id=1849","title":{"rendered":"React"},"content":{"rendered":"\n<p><strong>5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 React \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430:<\/strong><\/p>\n\n\n\n<p><strong>1. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 React?<\/strong><\/p>\n\n\n\n<p><strong>2. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 React<\/strong><\/p>\n\n\n\n<p><strong>3. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 JSX?<\/strong><\/p>\n\n\n\n<p><strong>4. \u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c?<\/strong><\/p>\n\n\n\n<p><strong>5. \u041a\u0430\u043a \u0432 React \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b?<\/strong><\/p>\n\n\n\n<p><strong><em>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f (events) \u0432 ReactJS<\/em><\/strong><\/p>\n\n\n\n<p><em>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430: \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0421\u043e\u0431\u044b\u0442\u0438\u0435.<\/em><br><em>&#8211; \u0421\u043e\u0431\u044b\u0442\u0438\u0435 &#8211; \u044d\u0442\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<\/em><br><em>-\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/em><br><em>1.\u041a\u043b\u0438\u043a\u0438 \u043c\u044b\u0448\u043a\u043e\u0439<\/em><br>2.\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u043e\u0439<br>3.\u041f\u0435\u0447\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u0430<br>4. \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435&#8230;<\/p>\n\n\n\n<p><strong>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/strong><br>\u0412 React &#8211; e \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0447\u0442\u043e \u0438 \u0432 HTML:<br>&#8211; click,<br>&#8211; change<br>&#8211; mouseover \u0438 \u0442.\u0434<br>\u041d\u043e \u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u043e\u043d\u0438 \u0440\u0430\u0437\u043d\u044f\u0442\u0441\u044f.<br>&#8211; \u0412 React \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u0431\u043b\u044e\u0436\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435.(camelCase).<br>&#8211; B React \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a.<\/p>\n\n\n\n<p><code>\/\/\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 HTML<\/code><br><code>&lt;button onClick = \"handleClick()\"&gt;<\/code><br><code>Click<\/code><br><code>&lt;\/button&gt;<\/code><\/p>\n\n\n\n<p><code>\/\/\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 React<\/code><br><code>&lt;button onClick = {handleClick}&gt;<\/code><br><code>Click<\/code><br><code>&lt;\/button&gt;<\/code><\/p>\n\n\n\n<p>***<br><strong>:warning:\u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/strong><br><code>function App(){<\/code><br><code>const handleClick = (message) =&gt; {<\/code><br><code>console.log(message);<\/code><br><code>}<\/code><br><code>return (<\/code><br><code>&lt;div&gt;<\/code><br><code>&lt;button onClick = {()=&gt;handleClick(\"Clicked\")}&gt;<\/code><br><code>Click<\/code><br><code>&lt;\/button&gt;<\/code><br><code>&lt;\/div&gt;<\/code><br><code>);<\/code><br><code>}<\/code><br>***<\/p>\n","protected":false},"excerpt":{"rendered":"<p>5 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 React \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430: 1. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 React? 2. \u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 React 3. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 JSX? 4. \u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c? 5. \u041a\u0430\u043a \u0432 React \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b? \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f (events) \u0432 ReactJS \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430: \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0421\u043e\u0431\u044b\u0442\u0438\u0435.&#8211; \u0421\u043e\u0431\u044b\u0442\u0438\u0435 &#8211; \u044d\u0442\u043e \u0432\u0441\u0435, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.-\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:1.\u041a\u043b\u0438\u043a\u0438 \u043c\u044b\u0448\u043a\u043e\u04392.\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u043e\u04393.\u041f\u0435\u0447\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u04304. &hellip; <a href=\"https:\/\/lvboard.infostore.in.ua\/?page_id=1849\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0447\u0438\u0442\u0430\u043d\u043d\u044f<span class=\"screen-reader-text\"> &#8220;React&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1849"}],"collection":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1849"}],"version-history":[{"count":2,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1849\/revisions"}],"predecessor-version":[{"id":1948,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1849\/revisions\/1948"}],"wp:attachment":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}