{"id":339403,"date":"2022-10-07T09:00:22","date_gmt":"2022-10-07T09:00:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=339403"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=339403","title":{"rendered":"<span>\u0423\u043b\u0443\u0447\u0448\u0430\u0435\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430 React-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Compound Components<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u043b\u044e\u0431\u043b\u044e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u041d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e. \u041b\u044e\u0431\u043b\u044e \u0431\u044b\u0442\u044c \u0432 \u043f\u043e\u0442\u043e\u043a\u0435, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u044e \u0441\u0435\u0431\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u043c.<\/p>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0435-\u0447\u0442\u043e, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0431\u0430\u0433, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043b\u0435\u0433\u0430\u0441\u0438-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u043d\u0430 300 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044f\u0441\u044c \u0443\u0436\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441, \u043b\u043e\u0432\u043b\u044e \u0441\u0435\u0431\u044f \u043d\u0430 \u043c\u044b\u0441\u043b\u0438, \u0447\u0442\u043e \u0443\u0436\u0435 10 \u043c\u0438\u043d\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u044e \u0432 \u044d\u043a\u0440\u0430\u043d, \u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u00ab\u0438\u0437-\u0437\u0430 \u0443\u0433\u043b\u0430\u00bb \u0432\u044b\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u044b\u0441\u043b\u044c \u00ab\u041f\u0441\u0441, \u043f\u0430\u0440\u0435\u043d\u044c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u0432\u043e\u0435\u00bb. \u0422\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441 \u043a\u0443\u0447\u0435\u0439 \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c, \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0432\u0430\u0441.\u00a0\u0417\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0435 React-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/70e\/354\/f85\/70e354f853197bfe39df0846c8db3f4c.png\" width=\"1600\" height=\"900\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/70e\/354\/f85\/70e354f853197bfe39df0846c8db3f4c.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/strong>. \u0412\u0435\u0441\u044c \u043a\u043e\u0434, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435, \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439. \u0412 \u043d\u0451\u043c \u043d\u0435\u0442 useEffect\u2019\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e.<\/p>\n<h3>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0436\u0438\u0437\u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/h3>\n<p>\u0412\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e: \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u0432\u0430 \u0438\u043d\u043f\u0443\u0442\u0430 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c, \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 submit.\u00a0<\/p>\n<pre><code class=\"javascript\">import React from \u2018react\u2019;  import { Form, Input, Button, Title } from \u2018our-design-system\u2019;  function AuthForm() {     return (         &lt;div>             &lt;Title>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form>                 &lt;Input placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                 &lt;Input placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                 &lt;Button type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }  export default AuthForm;<\/code><\/pre>\n<p><strong>\u041d\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/strong>. \u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435-\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0451 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0451\u0442\u0430. \u0417\u0430\u043f\u0440\u043e\u0441 \u0438\u0434\u0451\u0442 \u0432 \u0442\u043e\u0436\u0435 \u043c\u0435\u0441\u0442\u043e, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u043e\u0442 \u0436\u0435, \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0430 \u0442\u0430 \u0436\u0435, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u00ab\u0432\u0441\u0435\u0433\u043e\u00bb 2 \u043f\u043e\u043b\u044f. \u041d\u0435\u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f, \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 { authType === \u201clogin\u201d                     ? (&lt;div class=\u201dlogin-form\u201d>                             &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                             &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                      &lt;\/div>)                     : (&lt;div class=\u201dcard-form\u201d>                         {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                         }                     &lt;\/div>                 }                { authType === \u201caccount\u201d &amp;&amp;                &lt;Button                    theme={ theme }                    type=\u201dbutton\u201d                    onClick={changeAccountType}                >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button> }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0414\u0430, \u043f\u0440\u044f\u043c\u043e \u0432 \u0444\u043e\u0440\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u043f\u0441 (<code>authType<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443-\u043f\u0430\u0440\u043e\u043b\u044e \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0443 \u043a\u0430\u0440\u0442\u044b\/\u0441\u0447\u0451\u0442\u0430. \u0412\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u0438\u043a. \u041c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c: \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u043b\u043e\u0433\u0438\u043d\u0430-\u043f\u0430\u0440\u043e\u043b\u044f \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u0430\u0440\u0442\u044b\/\u0441\u0447\u0451\u0442\u0430.<\/p>\n<p>\u0412\u043d\u0438\u0437\u0443 \u0435\u0449\u0451 \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u0442\u0438 \u0438\u043d\u043f\u0443\u0442\u044b (\u043e\u043d\u0430 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u0435\u0441\u043b\u0438 \u0432\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443).<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c 2 \u043d\u043e\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432 \u043d\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435.<\/p>\n<p><strong>\u0415\u0449\u0451 \u043d\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/strong>. \u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0444\u043e\u0440\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448\u0443 \u0444\u043e\u0440\u043c\u0443.\u00a0\u0412 \u044d\u0442\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.\u00a0<\/p>\n<p>\u0421\u043a\u0430\u0437\u0430\u043d\u043e-\u0441\u0434\u0435\u043b\u0430\u043d\u043e \u2014\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u043f\u0441 <code>isWebview<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c: \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431\u0432\u044c\u044e \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme, isWebview, }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             { !isWebview &amp;&amp; &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 {                     { authType === \u201clogin\u201d                         ? (&lt;div class=\u201dlogin-form\u201d>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                          &lt;\/div>)                         : (&lt;div class=\u201dcard-form\u201d>                             {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                             }                         &lt;\/div>                 }                { authType === \u201caccount\u201d &amp;&amp;                &lt;Button                    theme={ theme }                    type=\u201dbutton\u201d                    onClick={changeAccountType}                >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button> }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u00ab\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0435\u0441\u043b\u0438 \u043c\u044b \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438\u00bb.<\/p>\n<p><strong>\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d<\/strong>. \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u00ab\u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f\u00bb \u0440\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f. \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u2014 \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u044b \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043d\u044f\u0435\u0442 \u044d\u0442\u0438 \u043f\u043e\u043b\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438.<\/p>\n<p>\u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u043b\u0435\u0439 \u2014 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043c\u0435\u043d\u044c\u0448\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432\u0435\u0440\u043d\u043e?<\/p>\n<p>\u041f\u043e\u0447\u0442\u0438. \u041d\u044e\u0430\u043d\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043f\u043e\u0431\u0435\u0433\u0443\u0442 \u0434\u0440\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u043a\u0442\u043e-\u0442\u043e \u0441\u0438\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043a\u0442\u043e-\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u043e\u0432\u0443\u044e. \u041c\u044b-\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431\u0432\u044c\u044e \u2014 \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f, \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u044b.\u00a0<\/p>\n<p>\u0427\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u043f\u0441 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 (<code>isNewDesignWebview<\/code>), \u0438 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u0438\u043a.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme, isWebview, isNewDesignWebview }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             { !isWebview &amp;&amp; &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 {                       isNewDesignWebview                       ? &lt;CardInput theme={ theme } placeholder=\u2018\u2019\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430\u2019\u2019\/>                       : authType === \u2018\u2019login\u2019\u2019                         ? (&lt;div class=\u201dlogin-form\u201d>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                          &lt;\/div>)                         : (&lt;div class=\u201dcard-form\u201d>                              {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                              }                         &lt;\/div>                 }                 {                     authType === \u201caccount\u201d &amp;&amp; !isNewDesignWebview &amp;&amp;                         &lt;Button                             theme={ theme }                             type=\u201dbutton\u201d                             onClick={changeAccountType}                         >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button>                 }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043d\u0438\u0437\u0443 \u0435\u0449\u0451 \u043e\u0434\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433\u043e<\/strong>. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430: \u0431\u0435\u0437 \u043b\u043e\u0433\u0438\u043a\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440, 3 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u043f\u0441\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c, \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c, \u0432 \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0438 7 (\u043d\u043e\u0432\u044b\u0445) \u0443\u0441\u043b\u043e\u0432\u0438\u0439.\u00a0<\/p>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u043e\u0447\u0435\u043d\u044c-\u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e. \u041c\u044b \u043a\u0440\u0438\u0447\u0438\u043c \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440, \u0447\u0442\u043e \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c, \u0438 \u0438\u0434\u0451\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<p>\u041d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u0438\u0434\u0442\u0438 \u043d\u0435 \u043d\u0430\u0434\u043e, \u0443 \u043c\u0435\u043d\u044f \u0434\u043b\u044f \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<h3>Compound components<\/h3>\n<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u0432\u043e\u0434\u043d\u0430\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u0435\u043b\u0435\u043a\u0442\u044b (<code>&lt;select><\/code>) \u0432 HTML.<\/p>\n<pre><code class=\"xml\">&lt;select name=\u201dOffice\u201d>     &lt;option value=\u201dDwight\u201d>Schrute&lt;\/option>     &lt;option value=\u201dMicheal\u201d>Scott&lt;\/option>     &lt;option value=\u201dJim\u201d>Halpert&lt;\/option>     &lt;option value=\u201dPam\u201d>Beesly&lt;\/option> &lt;\/select><\/code><\/pre>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0448\u0435\u043d\u0430\u043c\u0438 (<code>&lt;options><\/code>). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043f\u0448\u0435\u043d\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u0430. \u041f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u044b \u0438 \u043e\u043f\u0448\u0435\u043d\u044b \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0435\u0434\u0438\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443.<\/p>\n<blockquote>\n<p>Compound components \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443: \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b Compound components \u0432\u043d\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043e\u0431\u0449\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043e\u043d\u0438 \u0435\u0434\u0438\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435.<\/p>\n<\/blockquote>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0451\u0434, \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u0448\u0430 \u0444\u043e\u0440\u043c\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043a \u043d\u0435\u0439 \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<pre><code class=\"javascript\">export default function LoginAuth( ) {     return (         &lt;AuthForm theme={ \u2018dark\u2019}>             &lt;AuthForm.AuthTitle\/>             &lt;AuthForm.LoginInput\/>             &lt;AuthForm.PasswordInput\/>             &lt;AuthForm.SubmitButton\/>         &lt;\/AuthForm}>     ) }<\/code><\/pre>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0412\u043d\u0435 \u0444\u043e\u0440\u043c\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c. \u0412 \u0441\u0430\u043c\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u0448\u0438\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/strong>. \u041c\u043e\u0436\u0435\u0442 \u0441\u043c\u0443\u0442\u0438\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443, \u043d\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/p>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434 Compound components \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044e BEM.<\/p>\n<ul>\n<li>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a \u2014 \u0444\u043e\u0440\u043c\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u2014 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0438\u043d\u043f\u0443\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0430 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u043f\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0443 \u0441\u0430\u043c\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u0440\u043e\u043f\u0441\u044b \u043a\u0430\u043a \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445. <\/p>\n<h3>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Compound components<\/h3>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043d\u0430\u0448 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u043d\u0430 \u0435\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a Compound components \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<pre><code class=\"javascript\">import {     CardAccount, AuthCardInput, LoginInput, PasswordInput, SubmitButton, AuthTittle } from \u2018.\/components\u2019;  const AuthFormContext = React,createContext(undefined);  function AuthForm(props) {     const { theme } = props;     const memoizedContextValue = React.useMemo{         ( ) => ({ theme }),         [theme],     );      return (         &lt;AuthFormContext.Provider value={ memoizedContextValue }>             &lt;Form onSubmit={ submitForm } >                 { props.children }             &lt;\/Form>         &lt;\/AuthFormContext.Provider>     ); }  export function useAuthContext( ) {     const context = React.useContext(AuthFormContext);      if ( !context) {         throw new Error(\u2018This component must be used within a &lt;AuthForm> component.\u2019);     }      return context; }  AuthForm.AuthTitle = AuthTitle; AuthForm.LoginInput = LoginInput; AuthForm.PasswordInput = PasswordInput; AuthForm.CardAccount = CardAccount; AuthForm.AuthCardInput = AuthCardInput; AuthForm.SubmitButton = SubmitButton;<\/code><\/pre>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u043e \u0447\u0430\u0441\u0442\u044f\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u0449\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0438 \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u043d\u043e \u0435\u0433\u043e \u043d\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u043c.<\/p>\n<pre><code class=\"javascript\">const AuthFormContext = React,createContext(undefined);<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u043c\u0435\u043c\u043e\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0438\u0445. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0441\u0430\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0432 \u043c\u0435\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u043c\u043e\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.\u00a0<\/p>\n<pre><code class=\"javascript\">function AuthForm(props) {     const { theme } = props;     const memoizedContextValue = React.useMemo{         ( ) => ({ theme }),         [theme],     );<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0432 \u043d\u0430\u0448\u0443 \u0444\u043e\u0440\u043c\u0443.\u00a0<\/p>\n<pre><code class=\"javascript\">    return (         &lt;AuthFormContext.Provider value={ memoizedContextValue }>             &lt;Form onSubmit={ submitForm } >                 { props.children }             &lt;\/Form>         &lt;\/AuthFormContext.Provider>     );<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0434\u0443\u0440\u0430\u043a\u0430.\u00a0<\/p>\n<pre><code class=\"javascript\">    if ( !context) {         throw new Error(\u2018This component must be used within a &lt;AuthForm> component.\u2019);     }<\/code><\/pre>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0451 \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u043d\u0435 \u0444\u043e\u0440\u043c\u044b (\u0434\u0430 \u0438 \u043d\u0435 \u043d\u0430\u0434\u043e). \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u0437\u0430\u0448\u0438\u0442\u0430 \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0434\u0438\u0440\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430.\u00a0<\/p>\n<blockquote>\n<p>\u0415\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 (\u043f\u043e\u043b\u044f, \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0442.\u043f.), \u0442\u043e Compound Components \u043d\u0430\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<\/blockquote>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0436\u0435 \u00ab\u0437\u0430\u0449\u0438\u0442\u0435\u00bb \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u0445\u0443\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0435\u0442 \u2014 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043a\u0442\u043e-\u0442\u043e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u043d\u0435 \u0444\u043e\u0440\u043c\u044b.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u2014\u00a0 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/p>\n<pre><code class=\"javascript\">AuthForm.AuthTitle = AuthTitle; AuthForm.LoginInput = LoginInput; AuthForm.PasswordInput = PasswordInput; AuthForm.CardAccount = CardAccount; AuthForm.AuthCardInput = AuthCardInput; AuthForm.SubmitButton = SubmitButton;<\/code><\/pre>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f?<\/h3>\n<p>\u0412\u043e\u0442 \u043d\u0430\u0448\u0430 \u0444\u043e\u0440\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443 \u0438 \u043f\u0430\u0440\u043e\u043b\u044e \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c.<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm theme={ \u2018dark\u2019 }>         &lt;AuthForm.AuthTitle\/>         &lt;AuthForm.LoginInput\/>         &lt;AuthForm.PasswordInput\/>         &lt;AuthForm.SubmitButton\/> &lt;\/AuthForm}><\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0444\u043e\u0440\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u0436\u0435 \u043f\u043e \u043a\u0430\u0440\u0442\u0435 \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0443.<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm theme={ \u2018dark\u2019 }>         &lt;AuthForm.AuthTitle\/>         &lt;AuthForm.CardAccount\/>         &lt;AuthForm.SubmitButton\/> &lt;\/AuthForm}><\/code><\/pre>\n<p>\u042d\u0442\u043e \u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043e \u0441\u0442\u0430\u0440\u044b\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c.<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm theme={ \u2018dark\u2019 }>         &lt;AuthForm.AuthCardInput\/>         &lt;AuthForm.SubmitButton\/> &lt;\/AuthForm}><\/code><\/pre>\n<p>\u0410 \u044d\u0442\u043e \u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u043d\u043e\u0432\u044b\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c.<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm theme={ \u2018dark\u2019 }>         &lt;AuthForm.CardAccount\/>         &lt;AuthForm.SubmitButton\/> &lt;\/AuthForm}><\/code><\/pre>\n<p>\u041c\u044b \u0432\u044b\u043d\u0435\u0441\u043b\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 (\u0440\u0435\u043d\u0434\u0435\u0440\u0430) \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435, \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442. \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0435\u0435: \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043b\u0435\u0437\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0441\u044b \u043f\u0440\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u0442.\u0434. \u041c\u044b \u0432\u0441\u0451 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0430\u043c\u0438.<\/p>\n<p><strong>\u0421\u0440\u0430\u0432\u043d\u0438\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u044b.\u00a0<\/strong>\u041e\u0446\u0435\u043d\u0438\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431: \u043a\u0430\u043a \u0440\u0435\u043d\u0434\u0435\u0440 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0440\u0430\u043d\u044c\u0448\u0435 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u0438 \u043a\u0430\u043a \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0435\u0439\u0447\u0430\u0441.<\/p>\n<p>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442:<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm             theme=\"dark\"             authType=\"account\"             isWebview={true}             isNewDesignWebview={true} \/><\/code><\/pre>\n<p>\u0415\u0433\u043e \u0440\u0435\u043d\u0434\u0435\u0440:<\/p>\n<pre><code class=\"javascript\">return (         &lt;div>             { !isWebview &amp;&amp; &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title> }             &lt;Form theme={ theme }>                 {                     isNewDesignWebview                     ? &lt;CardInput theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430\"\/>                     : authType === \"login\"                         ? (&lt;div class=\"login-form\">                             &lt;Input theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\" type=\"text\"\/>                             &lt;Input theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\" type=\"password\"\/>                         &lt;\/div>)                         : (&lt;div class=\"card-form\">                             {                                 accountType === 'card'                                 ? &lt;Input theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\" type=\"number\"\/>                                 : &lt;Input theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\" type=\"number\"\/>                             }                         &lt;\/div>)                 }                 {                     authType === \"account\" &amp;&amp; !isNewDesignWebview &amp;&amp;                         &lt;Button                             theme={ theme }                             type=\"button\"                             onClick={changeAccountType}                         >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes[accountType] }&lt;\/Button>                 }                 &lt;Button theme={ theme } type=\"submit\">\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     );<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Compound Component:<\/p>\n<pre><code class=\"javascript\">&lt;AuthForm theme={'dark'}>             &lt;AuthForm.AuthCardInput\/>             &lt;AuthForm.SubmitButton\/> &lt;\/AuthForm><\/code><\/pre>\n<p>\u0418 \u0435\u0433\u043e \u0440\u0435\u043d\u0434\u0435\u0440:\u00a0<\/p>\n<pre><code class=\"javascript\">return (         &lt;AuthFormContext.Provider value={ memoizedContextValue }>             &lt;Form onSubmit={ submitForm } >                 { props.children }             &lt;\/Form>         &lt;\/AuthFormContext.Provider> );<\/code><\/pre>\n<p>\u0410 \u044d\u0442\u043e \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b (\u0437\u0434\u0435\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043d\u043e \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u0439 \u0444\u043e\u0440\u043c\u0435 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438):<\/p>\n<pre><code class=\"javascript\">export default function AuthCardInput() {     const { theme } = useAuthContext();     return (         &lt;CardInput theme={ theme } placeholder=\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430\"\/>     ) }  export default function SubmitButton() {     const { theme, submitForm } = useAuthContext();     return (         &lt;Button theme={ theme } type=\"submit\" onClick={ submitForm }>             \u0412\u043e\u0439\u0442\u0438         &lt;\/Button>     ) }<\/code><\/pre>\n<h3>\u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Compound components?<\/h3>\n<ul>\n<li>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 (\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432) \u0432 \u043e\u0434\u043d\u0443 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c. \u042d\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u044b \u0441 \u043e\u043f\u0448\u0435\u043d\u0430\u043c\u0438, \u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441 \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0435\u0439.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d \u0438\u0437-\u0437\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u043f\u0441\u043e\u0432. \u042d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0441 \u0444\u043e\u0440\u043c\u043e\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0441\u043e\u0432. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u0441\u0430\u043c\u043e\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0435 \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043d\u0430 online-\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 HolyJS. \u0417\u0430\u043f\u0438\u0441\u044c \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u00a0<a href=\"https:\/\/vk.com\/video-215425037_456239049\">\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430<\/a>\u00a0\u0432 \u0433\u0440\u0443\u043f\u043f\u0435\u00a0<a href=\"https:\/\/vk.com\/digital.alfabank\">Alfa Digital \u0432 \u0412\u041a<\/a>, \u0442\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043e\u043a\u043b\u0430\u0434\u043e\u0432 \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0438 \u043c\u0438\u0442\u0430\u043f\u043e\u0432. \u200b\u200b\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b<a href=\"https:\/\/t.me\/alfadigital_jobs\"><u>\u00a0Alfa Digital<\/u><\/a>\u00a0\u2014 \u0442\u0430\u043c \u043c\u044b \u043f\u043e\u0441\u0442\u0438\u043c \u043d\u043e\u0432\u043e\u0441\u0442\u0438, \u043e\u043f\u0440\u043e\u0441\u044b, \u0432\u0438\u0434\u0435\u043e \u0441 \u043c\u0438\u0442\u0430\u043f\u043e\u0432, \u0438\u043d\u043e\u0433\u0434\u0430 \u0448\u0443\u0442\u0438\u043c.<\/p>\n<p>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/alfa\/blog\/689562\/\">\u041d\u0435\u043f\u043e\u0434\u0430\u0442\u043b\u0438\u0432\u044b\u0435 soft-skills: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430\u043c \u0432\u0441\u0451 \u0435\u0449\u0451 \u043d\u0443\u0436\u0435\u043d \u044d\u043c\u043e\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/alfa\/news\/t\/679928\/\">Data Science Meet Up #2: LTV, Uplift, \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e \u0438 Reject\/Inference<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/redmadrobot\/blog\/687184\/\">\u041a\u0430\u043a \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0441\u00a0\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430\u00a0Android \u0438\u00a0iOS: \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u00a0\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/alfa\/blog\/686954\/\">\u041a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b\u0438 \u043d\u0430 React-router v6: \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438 \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/alfa\/blog\/684774\/\">\u041a\u0430\u043a \u0438 \u0437\u0430\u0447\u0435\u043c \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u0438\u043d\u0441\u0430\u0439\u0442\u044b \u0432 \u043e\u0442\u0437\u044b\u0432\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/company\/alfa\/blog\/691976\/\"> https:\/\/habr.com\/ru\/company\/alfa\/blog\/691976\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u043b\u044e\u0431\u043b\u044e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u044f\u043c\u0438. \u041d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e. \u041b\u044e\u0431\u043b\u044e \u0431\u044b\u0442\u044c \u0432 \u043f\u043e\u0442\u043e\u043a\u0435, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u044e \u0441\u0435\u0431\u044f \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u043e\u043c.<\/p>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0435-\u0447\u0442\u043e, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0440\u043e\u0434\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u0442\u044c \u0431\u0430\u0433, \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043b\u0435\u0433\u0430\u0441\u0438-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u043d\u0430 300 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430. \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044f\u0441\u044c \u0443\u0436\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441, \u043b\u043e\u0432\u043b\u044e \u0441\u0435\u0431\u044f \u043d\u0430 \u043c\u044b\u0441\u043b\u0438, \u0447\u0442\u043e \u0443\u0436\u0435 10 \u043c\u0438\u043d\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u044e \u0432 \u044d\u043a\u0440\u0430\u043d, \u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u00ab\u0438\u0437-\u0437\u0430 \u0443\u0433\u043b\u0430\u00bb \u0432\u044b\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u044b\u0441\u043b\u044c \u00ab\u041f\u0441\u0441, \u043f\u0430\u0440\u0435\u043d\u044c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u043d\u0435 \u0442\u0432\u043e\u0435\u00bb. \u0422\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441 \u043a\u0443\u0447\u0435\u0439 \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c, \u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0442\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0432\u0430\u0441.\u00a0\u0417\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u0441\u0442\u0440\u0430\u0448\u043d\u044b\u0435 React-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/strong>. \u0412\u0435\u0441\u044c \u043a\u043e\u0434, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435, \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439. \u0412 \u043d\u0451\u043c \u043d\u0435\u0442 useEffect\u2019\u043e\u0432, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e.<\/p>\n<h3>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0436\u0438\u0437\u043d\u0438 \u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/h3>\n<p>\u0412\u0441\u0451 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e: \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u0432\u0430 \u0438\u043d\u043f\u0443\u0442\u0430 \u0441 \u043b\u043e\u0433\u0438\u043d\u043e\u043c \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c, \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 submit.\u00a0<\/p>\n<pre><code class=\"javascript\">import React from \u2018react\u2019;  import { Form, Input, Button, Title } from \u2018our-design-system\u2019;  function AuthForm() {     return (         &lt;div>             &lt;Title>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form>                 &lt;Input placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                 &lt;Input placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                 &lt;Button type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }  export default AuthForm;<\/code><\/pre>\n<p><strong>\u041d\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/strong>. \u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435-\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0435\u0449\u0451 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0451\u0442\u0430. \u0417\u0430\u043f\u0440\u043e\u0441 \u0438\u0434\u0451\u0442 \u0432 \u0442\u043e\u0436\u0435 \u043c\u0435\u0441\u0442\u043e, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u043e\u0442 \u0436\u0435, \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0430 \u0442\u0430 \u0436\u0435, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u00ab\u0432\u0441\u0435\u0433\u043e\u00bb 2 \u043f\u043e\u043b\u044f. \u041d\u0435\u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f, \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 { authType === \u201clogin\u201d                     ? (&lt;div class=\u201dlogin-form\u201d>                             &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                             &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                      &lt;\/div>)                     : (&lt;div class=\u201dcard-form\u201d>                         {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                         }                     &lt;\/div>                 }                { authType === \u201caccount\u201d &amp;&amp;                &lt;Button                    theme={ theme }                    type=\u201dbutton\u201d                    onClick={changeAccountType}                >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button> }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0414\u0430, \u043f\u0440\u044f\u043c\u043e \u0432 \u0444\u043e\u0440\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u043f\u0441 (<code>authType<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u0438\u043f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443-\u043f\u0430\u0440\u043e\u043b\u044e \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0443 \u043a\u0430\u0440\u0442\u044b\/\u0441\u0447\u0451\u0442\u0430. \u0412\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u0438\u043a. \u041c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c: \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u043b\u043e\u0433\u0438\u043d\u0430-\u043f\u0430\u0440\u043e\u043b\u044f \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u0430\u0440\u0442\u044b\/\u0441\u0447\u0451\u0442\u0430.<\/p>\n<p>\u0412\u043d\u0438\u0437\u0443 \u0435\u0449\u0451 \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u0442\u0438 \u0438\u043d\u043f\u0443\u0442\u044b (\u043e\u043d\u0430 \u043d\u0435 \u043d\u0443\u0436\u043d\u0430, \u0435\u0441\u043b\u0438 \u0432\u0445\u043e\u0434\u0438\u043c \u043f\u043e \u043b\u043e\u0433\u0438\u043d\u0443).<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c 2 \u043d\u043e\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432 \u043d\u0430\u0448\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435.<\/p>\n<p><strong>\u0415\u0449\u0451 \u043d\u043e\u0432\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/strong>. \u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0444\u043e\u0440\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448\u0443 \u0444\u043e\u0440\u043c\u0443.\u00a0\u0412 \u044d\u0442\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.\u00a0<\/p>\n<p>\u0421\u043a\u0430\u0437\u0430\u043d\u043e-\u0441\u0434\u0435\u043b\u0430\u043d\u043e \u2014\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u043f\u0441 <code>isWebview<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c: \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431\u0432\u044c\u044e \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme, isWebview, }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             { !isWebview &amp;&amp; &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 {                     { authType === \u201clogin\u201d                         ? (&lt;div class=\u201dlogin-form\u201d>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                          &lt;\/div>)                         : (&lt;div class=\u201dcard-form\u201d>                             {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                             }                         &lt;\/div>                 }                { authType === \u201caccount\u201d &amp;&amp;                &lt;Button                    theme={ theme }                    type=\u201dbutton\u201d                    onClick={changeAccountType}                >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button> }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u00ab\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0435\u0441\u043b\u0438 \u043c\u044b \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438\u00bb.<\/p>\n<p><strong>\u0420\u0435\u0434\u0438\u0437\u0430\u0439\u043d<\/strong>. \u041f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u00ab\u0441\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f\u00bb \u0440\u0435\u0434\u0438\u0437\u0430\u0439\u043d \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430\u043c \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f. \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u2014 \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u044b \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043d\u044f\u0435\u0442 \u044d\u0442\u0438 \u043f\u043e\u043b\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438.<\/p>\n<p>\u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u043b\u0435\u0439 \u2014 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043c\u0435\u043d\u044c\u0448\u0435 \u0440\u0430\u0431\u043e\u0442\u044b, \u0432\u0435\u0440\u043d\u043e?<\/p>\n<p>\u041f\u043e\u0447\u0442\u0438. \u041d\u044e\u0430\u043d\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043f\u043e\u0431\u0435\u0433\u0443\u0442 \u0434\u0440\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: \u043a\u0442\u043e-\u0442\u043e \u0441\u0438\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043a\u0442\u043e-\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u043e\u0432\u0443\u044e. \u041c\u044b-\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431\u0432\u044c\u044e \u2014 \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f, \u043d\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u044b.\u00a0<\/p>\n<p>\u0427\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u043f\u0441 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0430 (<code>isNewDesignWebview<\/code>), \u0438 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u0438\u043a.<\/p>\n<pre><code class=\"javascript\">function AuthForm({ authType, theme, isWebview, isNewDesignWebview }) {     const [accountType, setAccountType] = useState(\u2018account\u2019);     const changeAccountType = () => {setAccountType(\u2018card\u2019)};     return (         &lt;div>             { !isWebview &amp;&amp; &lt;Title theme={ theme }>\u0412\u043e\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0431\u0430\u043d\u043a&lt;\/Title>             &lt;Form theme={ theme }>                 {                       isNewDesignWebview                       ? &lt;CardInput theme={ theme } placeholder=\u2018\u2019\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0447\u0435\u0442\u0430\u2019\u2019\/>                       : authType === \u2018\u2019login\u2019\u2019                         ? (&lt;div class=\u201dlogin-form\u201d>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d\u201d type=\u201dtext\u201d\/>                               &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c\u201d type=\u201dpassword\u201d\/>                          &lt;\/div>)                         : (&lt;div class=\u201dcard-form\u201d>                              {                                 accountType === \u2018card\u2019                                 ? &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u0430\u0440\u0442\u044b\u201d type=\u201dnumber\u201d\/>                                 : &lt;Input theme={ theme } placeholder=\u201d\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430\u201d type=\u201dnumber\u201d\/>                              }                         &lt;\/div>                 }                 {                     authType === \u201caccount\u201d &amp;&amp; !isNewDesignWebview &amp;&amp;                         &lt;Button                             theme={ theme }                             type=\u201dbutton\u201d                             onClick={changeAccountType}                         >\u0412\u043e\u0439\u0442\u0438 \u043f\u043e { accountTypes [accountType] }&lt;\/Button>                 }                &lt;Button theme={ theme } type=\u201dsubmit\u201d>\u0412\u043e\u0439\u0442\u0438&lt;\/Button>             &lt;\/Form>         &lt;\/div>     ); }<\/code><\/pre>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u043d\u0438\u0437\u0443 \u0435\u0449\u0451 \u043e\u0434\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433\u043e<\/strong>. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430: \u0431\u0435\u0437 \u043b\u043e\u0433\u0438\u043a\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u043d\u0434\u0435\u0440, 3 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u043f\u0441\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c, \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c, \u0432 \u0442\u0435\u0445 \u0438\u043b\u0438 \u0438\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0438 7 (\u043d\u043e\u0432\u044b\u0445) \u0443\u0441\u043b\u043e\u0432\u0438\u0439.\u00a0<\/p>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u043e\u0447\u0435\u043d\u044c-\u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e. \u041c\u044b \u043a\u0440\u0438\u0447\u0438\u043c \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440, \u0447\u0442\u043e \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c, \u0438 \u0438\u0434\u0451\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<p>\u041d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u0438\u0434\u0442\u0438 \u043d\u0435 \u043d\u0430\u0434\u043e, \u0443 \u043c\u0435\u043d\u044f \u0434\u043b\u044f \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<h3>Compound components<\/h3>\n<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0432\u0432\u043e\u0434\u043d\u0430\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u0435\u043b\u0435\u043a\u0442\u044b (<code>&lt;select><\/code>) \u0432 HTML.<\/p>\n<pre><code class=\"xml\">&lt;select name=\u201dOffice\u201d>     &lt;option value=\u201dDwight\u201d>Schrute&lt;\/option>     &lt;option value=\u201dMicheal\u201d>Scott&lt;\/option>     &lt;option value=\u201dJim\u201d>Halpert&lt;\/option>     &lt;option value=\u201dPam\u201d>Beesly&lt;\/option> &lt;\/select><\/code><\/pre>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0448\u0435\u043d\u0430\u043c\u0438 (<code>&lt;options><\/code>). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043f\u0448\u0435\u043d\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u0430. \u041f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u044b \u0438 \u043e\u043f\u0448\u0435\u043d\u044b \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0435\u0434\u0438\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443.<\/p>\n<blockquote>\n<p>Compound components \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443: \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b Compound components \u0432\u043d\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043e\u0431\u0449\u0435\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043e\u0431\u0449\u0438\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c. \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043e\u043d\u0438 \u0435\u0434\u0438\u043d\u043e\u0435 \u0446\u0435\u043b\u043e\u0435.<\/p>\n<\/blockquote>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0451\u0434, \u043f\u043e\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u0448\u0430 \u0444\u043e\u0440\u043c\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043a \u043d\u0435\u0439 \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<pre><code class=\"javascript\">export default function LoginAuth( ) {     return (         &lt;AuthForm theme={ \u2018dark\u2019}>             &lt;AuthForm.AuthTitle\/>             &lt;AuthForm.LoginInput\/>             &lt;AuthForm.PasswordInput\/>             &lt;AuthForm.SubmitButton\/>         &lt;\/AuthForm}>     ) }<\/code><\/pre>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u043e\u0440\u043c\u0430 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0412\u043d\u0435 \u0444\u043e\u0440\u043c\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c. \u0412 \u0441\u0430\u043c\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u0448\u0438\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443.<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/strong>. \u041c\u043e\u0436\u0435\u0442 \u0441\u043c\u0443\u0442\u0438\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443, \u043d\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/p>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434 Compound components \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044e BEM.<\/p>\n<ul>\n<li>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a \u2014 \u0444\u043e\u0440\u043c\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u2014 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0438\u043d\u043f\u0443\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0430 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u043f\u0441\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0443 \u0441\u0430\u043c\u0438\u0445<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-339403","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339403","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=339403"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339403\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}