{"id":297803,"date":"2020-01-28T09:00:38","date_gmt":"2020-01-28T09:00:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=297803"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=297803","title":{"rendered":"\u0427\u0435\u043c\u0443 \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 Svelte"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/473598\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vr\/hw\/rx\/vrhwrxybrt9sbgwubulfyjh3msw.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 Svelte \u0432 \u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435, \u0438 \u0432\u0437\u044f\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 <a href=\"https:\/\/www.npmjs.com\/package\/svelte-atoms\" rel=\"nofollow\">svelte-atoms<\/a>. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b UI \u043a\u0438\u0442 \u043d\u0430 React, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435.<br \/>  \u041a\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0435\u043c\u0430\u043c Svelte \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f\u043c\u0438 Svelte. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043c\u043e\u0438\u043c\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438:<br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/458974\/\">\u041f\u043e\u043b\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c \u043d\u0430 Svelte<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/452684\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0438\u0433\u0440\u0443 \u043d\u0430 Svelte 3<\/a><\/p>\n<p>  <\/p>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0437\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0415\u0449\u0435 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043d\u0435 \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0438 \u043d\u0435 \u0432\u0441\u0435 \u0431\u0430\u0433\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b. \u0421\u0435\u0439\u0447\u0430\u0441 \u0434\u0435\u043b\u0430\u044e \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0432 \u0431\u043e\u0435\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0447\u0435\u043c\u0443 \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f, \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 Svelte.<\/p>\n<p>  <\/p>\n<h2 id=\"1-ispolzovanie-svoystva-class\">1. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 class<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e class \u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0443, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u043b\u043e\u0432\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0441\u0430\u043c\u0438\u043c javascript. <\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt; export let class = ''; \/\/ !!! \u043e\u0448\u0438\u0431\u043a\u0430 !!! &lt;\/script&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 api Svelte. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>$$props<\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442. \u0412 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435-\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e class<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;Component class=&quot;someClass&quot; \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>$$props<\/strong>.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div class={$$props.class} \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/svelte.dev\/repl\/6de3c939fcbf4c90a0309210c04e1c3a?version=3.17.2\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 REPL<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"2-stilizaciya-dochernih-komponentov\">2. \u0421\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p>  <\/p>\n<p>\u0412 Svelte \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439. \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u0445\u0435\u0448 \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 &quot;\u043f\u0440\u043e\u0442\u0435\u0447\u0435\u0442&quot;. \u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442? \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043b\u0430\u0441\u0441 \u0438 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438. \u0420\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b <strong>:global()<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;   import Component from &quot;.\/Component.svelte&quot;; &lt;\/script&gt;  &lt;div class=&quot;parent&quot;&gt;   &lt;Component class=&quot;childClass&quot; \/&gt; &lt;\/div&gt;  &lt;style&gt;   .parent :global(.childClass) {     color: red;   } &lt;\/style&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/svelte.dev\/repl\/765f182ddd75486a8f6cf0b3ba75f276?version=3\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 REPL<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0432\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c, \u043d\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0441\u0435\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<p>  <\/p>\n<h2 id=\"3-obrabotchiki-vseh-sobytiy\">3. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u0441\u0435\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/h2>\n<p>  <\/p>\n<p>Svelte \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0432\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0443\u0442\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0445 \u0432 \u043d\u0430\u0448 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442. \u0418\u0434\u0435\u044e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0443 <a href=\"https:\/\/habr.com\/ru\/users\/alexxnb\/\" class=\"user_link\">AlexxNB<\/a> \u0432 \u0435\u0433\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/github.com\/AlexxNB\/svelte-chota\" rel=\"nofollow\">svelte-chota<\/a>.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;script&gt;   import { current_component, bubble, listen } from &quot;svelte\/internal&quot;;   function getEventsAction(component) {     return node =&gt; {       const events = Object.keys(component.$$.callbacks);       const listeners = [];       events.forEach(event =&gt;         listeners.push(listen(node, event, e =&gt; bubble(component, e)))       );       return {         destroy: () =&gt; {           listeners.forEach(listener =&gt; listener());         }       };     };   }   const events = getEventsAction(current_component);   export let value; &lt;\/script&gt;  &lt;input use:events {value} \/&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><a href=\"https:\/\/svelte.dev\/repl\/dbeabf42636545b3a8dc6ebe84c2d98c?version=3.17.3\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 REPL<\/a><\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 API Svelte, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b <strong>on:<\/strong> * <a href=\"https:\/\/github.com\/sveltejs\/svelte\/issues\/2837\" rel=\"nofollow\">Issue \u043d\u0430 github<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"4-obnaruzhenie-slotov\">4. \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0442\u043e\u0432.<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043b\u043e\u0442\u0430, \u0442\u043e \u043c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0430\u043c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"sposob-pervyy-legalnyy\">\u0421\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0432\u044b\u0439, \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0439.<\/h3>\n<p>  <\/p>\n<p>\u0423 \u0441\u043b\u043e\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0444\u043e\u043b\u0431\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e. \u0421\u0434\u0435\u043b\u0430\u0432 \u0431\u0438\u043d\u0434\u0438\u043d\u0433 \u0444\u043e\u043b\u0431\u044d\u043a\u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043d\u0430\u0448 \u0441\u043b\u043e\u0442.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;   let footerRef = null;   $: isFooterExists = Boolean(footerRef); &lt;\/script&gt;  &lt;slot name=&quot;footer&quot;&gt;   &lt;div bind:this={footerRef} \/&gt; &lt;\/slot&gt; {isFooterExists ? '\u0424\u0443\u0442\u0435\u0440 \u0435\u0441\u0442\u044c' : '\u0424\u0443\u0442\u0435\u0440\u0430 \u043d\u0435\u0442'}<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"sposob-vtoroy-polulegalnyy\">\u0421\u043f\u043e\u0441\u043e\u0431 \u0432\u0442\u043e\u0440\u043e\u0439, \u043f\u043e\u043b\u0443\u043b\u0435\u0433\u0430\u043b\u044c\u043d\u044b\u0439.<\/h3>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c api Svelte<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const isFooterExists = Boolean($$props.$$slots &amp;&amp; $$props.$$slots.footer);<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/svelte.dev\/repl\/43f870e557c74ae3aec470d08f9ea434?version=3.17.3\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 REPL<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"5-portaly\">5. \u041f\u043e\u0440\u0442\u0430\u043b\u044b<\/h2>\n<p>  <\/p>\n<p>\u0412 Svelte \u043d\u0435\u0442 \u043f\u0440\u0438\u0435\u043c\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0440\u0442\u0430\u043b\u043e\u0432, \u043a\u0430\u043a \u0432 React, \u043d\u043e \u0435\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f DOM api.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;   import { onMount } from &quot;svelte&quot;;   let ref;   onMount(() =&gt; {     document.body.appendChild(ref);     return () =&gt; {       document.body.removeChild(ref);     };   }); &lt;\/script&gt;  &lt;div&gt;   &lt;div bind:this={ref}&gt;content&lt;\/div&gt; &lt;\/div&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0435\u0433\u043e \u0432 body, \u0430 \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0438 \u043d\u0430\u0448 \u043f\u043e\u0440\u0442\u0430\u043b.<br \/>  \u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0437\u0430\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u0432\u0430\u0448 \u043f\u043e\u0440\u0442\u0430\u043b \u0432 div, \u0438\u043d\u0430\u0447\u0435 Svelte \u043c\u043e\u0436\u0435\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0440\u0438 \u0440\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"6-animacii\">6. \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/h2>\n<p>  <\/p>\n<p>\u0412 Svelte \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u0430\u043c \u0432 \u0440\u0430\u0431\u043e\u0442\u0435. \u041e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0438\u0441\u0447\u0435\u0437\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041d\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. Svelte \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438\u0437 \u0434\u0435\u0440\u0435\u0432\u0430. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 <a href=\"https:\/\/svelte.dev\/docs#transition_fn\" rel=\"nofollow\">local<\/a>.<br \/>  <a href=\"https:\/\/svelte.dev\/tutorial\/local-transitions\" rel=\"nofollow\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"7-imenovannye-sloty-i-komponenty\">7. \u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u043e\u0442\u044b \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/h2>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043b\u043e\u0442 \u0441\u0440\u0430\u0437\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043d\u0435\u043b\u044c\u0437\u044f. <a href=\"https:\/\/github.com\/sveltejs\/svelte\/issues\/1037\" rel=\"nofollow\">Issue \u043d\u0430 github<\/a><\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;Component&gt;   &lt;Child slot='footer'\/&gt; &lt;\/Component&gt; &lt;!-- \u0442\u0430\u043a \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 --&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043b\u043e\u0442 \u0437\u0430\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 div \u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 html \u0442\u0435\u0433.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;Component&gt;   &lt;div slot='footer'&gt;     &lt;Child \/&gt;   &lt;\/div&gt; &lt;\/Component&gt; &lt;!-- \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442! --&gt;<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"8-poluchenie-spiska-svoystv-komponenta\">8. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;     import Component from '.\/Component.svelte';     const [_, ...props] = Object.getOwnPropertyNames(Component.prototype); &lt;\/script&gt;  {JSON.stringify(props)}<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0434\u0435\u044e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0443 <a href=\"https:\/\/habr.com\/ru\/users\/paulmaly\/\" class=\"user_link\">PaulMaly<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"9-dvuhstoronniy-binding\">9. \u0414\u0432\u0443\u0445\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0431\u0438\u043d\u0434\u0438\u043d\u0433<\/h2>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 React, \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u0434\u0432\u0443\u0445\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0443\u0433\u0430\u044e\u0449\u0435\u0439, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u0435\u0439 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u0443\u0447\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0442\u0430\u043a \u0438 store.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;   import Input from &quot;.\/Input.svelte&quot;;   import { writable } from &quot;svelte\/store&quot;;   let letValue = &quot;test let&quot;;   const storeValue = writable(&quot;test store&quot;); &lt;\/script&gt;  &lt;Input bind:value={letValue} \/&gt; &lt;Input bind:value={$storeValue} \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 <a href=\"https:\/\/svelte.dev\/repl\/e6f91174592d45c78f4701b2d311b62e?version=3\" rel=\"nofollow\">REPL<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"10-redaktiruemyy-kontent\">10. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u043e\u0439 <strong>contenteditable<\/strong> \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0438\u043d\u0434\u0438\u043d\u0433 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script&gt;   let value = &quot;Edit me&quot;; &lt;\/script&gt;  &lt;div contenteditable=&quot;true&quot; bind:textContent={value}&gt;{value}&lt;\/div&gt; &lt;div&gt;Value: {value}&lt;\/div&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 <a href=\"https:\/\/svelte.dev\/repl\/457a262df7db40c9936d7cc353320bd7?version=3.18.0\" rel=\"nofollow\">REPL<\/a><\/p>\n<p>  <\/p>\n<h2 id=\"razmer-komponentov\">\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p>  <\/p>\n<p>\u041d\u0443 \u0438 \u043a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 React. \u0414\u0435\u0440\u0436\u0438\u0442\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 Svelte \u0438 React, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u0434 \u0438 \u0441\u0442\u0438\u043b\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3j\/of\/9r\/3jof9rsfljnvimuj39wnnpqiffq.png\"><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/svelte-atoms.web.app\/\" rel=\"nofollow\">\u0414\u0435\u043c\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/a><br \/>  <a href=\"https:\/\/gitlab.com\/az67128\/svelte-atoms\" rel=\"nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a><br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u0448\u043b\u0438 \u0431\u0430\u0433, \u0438\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 <a href=\"https:\/\/gitlab.com\/az67128\/svelte-atoms\/issues\" rel=\"nofollow\">issue<\/a><\/p>\n<\/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\/473598\/\"> https:\/\/habr.com\/ru\/post\/473598\/<\/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\/473598\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vr\/hw\/rx\/vrhwrxybrt9sbgwubulfyjh3msw.png\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 Svelte \u0432 \u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435, \u0438 \u0432\u0437\u044f\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 <a href=\"https:\/\/www.npmjs.com\/package\/svelte-atoms\" rel=\"nofollow\">svelte-atoms<\/a>. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b UI \u043a\u0438\u0442 \u043d\u0430 React, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435.<br \/>  \u041a\u0430\u043a\u0438\u043c \u043f\u0440\u0438\u0435\u043c\u0430\u043c Svelte \u044f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\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-297803","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297803","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=297803"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/297803\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}