{"id":350394,"date":"2023-07-18T09:01:25","date_gmt":"2023-07-18T09:01:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=350394"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=350394","title":{"rendered":"<span>React Content Elements<\/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><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/747372\/\" rel=\"noopener noreferrer nofollow\"><em>Web Content Elements<\/em><\/a><\/p>\n<p>\u0412 HTML \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0435\u0433 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u0441\u043a\u0440\u0438\u043c\u0438\u043d\u0430\u0442\u043e\u0440\u0430 &#8212; \u0442\u0435\u0433 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043a HTML \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0438\u043b\u0438 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443\u044f\u0441\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u043e\u0431\u0449\u0435\u043f\u0440\u0438\u043d\u044f\u0442\u044b\u043c\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0437 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u043b\u0438\u0447\u043d\u043e, \u043b\u0438\u0431\u043e \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0434 \u0440\u0435\u0432\u044c\u044e.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 HTML \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u043b\u0438 \u044d\u0442\u0430\u043f\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430.<\/p>\n<p>Web Content Elements(WCE) &#8212; \u044d\u0442\u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f, \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0438 \u043e\u0434\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e.<\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e WCE, \u0442\u0435\u0433 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<p>?\u00a0\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u043e \u0438\u0445 \u0440\u043e\u043b\u044f\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0430 \u043d\u0435 \u0442\u0435\u0433\u0430\u043c.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0440\u043e\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>Block (<em>div, section, main, footer, e.t.c.<\/em>)<\/p>\n<\/li>\n<li>\n<p>Text (<em>p, span, b, e.t.c<\/em>)<\/p>\n<\/li>\n<li>\n<p>Image (<em>img<\/em>)<\/p>\n<\/li>\n<li>\n<p>Link (<em>a<\/em>)<\/p>\n<\/li>\n<li>\n<p>Button (<em>button<\/em>)<\/p>\n<\/li>\n<li>\n<p>Divider (<em>hr<\/em>)<\/p>\n<\/li>\n<li>\n<p>List (<em>ul, ol, dl, e.t.c.<\/em>)<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u043e\u043b\u0438(\u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432):<\/p>\n<ul>\n<li>\n<p>Custom<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 HTML \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e WCE \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/501\/aca\/48c\/501aca48ce86c48887072bd554d6d948.png\" width=\"864\" height=\"258\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/501\/aca\/48c\/501aca48ce86c48887072bd554d6d948.png\"\/><\/figure>\n<p><a href=\"https:\/\/pkuznetsovdev.github.io\/rce\/\" rel=\"noopener noreferrer nofollow\"><em>React Content Elements<\/em><\/a>\u00a0\u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 Web Content Elements \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Typescript \u0438 React.<\/p>\n<p><a href=\"https:\/\/pkuznetsovdev.github.io\/rce\/\" rel=\"noopener noreferrer nofollow\">Official webpage<\/a><\/p>\n<p><a href=\"https:\/\/www.npmjs.com\/package\/react-content-elements\" rel=\"noopener noreferrer nofollow\">NPM package<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/pkuznetsovdev\/react-content-elements\" rel=\"noopener noreferrer nofollow\">Github<\/a><\/p>\n<h3>Basics<\/h3>\n<p><em>Content Elements(CE)<\/em> \u043d\u0430\u0437\u0432\u0430\u043d\u044b \u043f\u043e \u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b(DOM \u0434\u0435\u0440\u0435\u0432\u0430).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/em>:<\/p>\n<pre><code class=\"javascript\">import CE from 'react-content-elements';  &lt;CE.Block>Block Content Element&lt;\/CE.Block> \/\/ HTML &lt;div class=\"ce ce-block\">Block Content Element&lt;\/div>  &lt;CE.Text className=\"class-name\">Text Content Element&lt;\/CE.Text> \/\/ HTML &lt;p class=\"class-name ce ce-text\">Text Content Element&lt;\/p>  &lt;CE.Image src=\"link\/to\/the-image.jpg\" \/> \/\/ HTML &lt;img class=\"ce ce-image\" src=\"link\/to\/the-image.jpg\" \/>    &lt;CE.Link>Link Content Element&lt;\/CE.Link> \/\/ HTML &lt;a class=\"ce ce-link\">Link Content Element&lt;\/a>  &lt;CE.Button>Button Content Element&lt;\/CE.Button> \/\/ HTML &lt;button class=\"ce ce-link\" type=\"button\">Button Content Element&lt;\/button>  &lt;CE.Divider \/> \/\/ HTML &lt;hr class=\"ce ce-divider\" \/> <\/code><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u0438\u043c\u0435\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0442\u0435\u0433<\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, <em>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/em> \u2018<strong>p<\/strong>\u2019 \u0434\u043b\u044f Text Content Element<\/p>\n<\/li>\n<li>\n<p>\u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441:\u00a0<strong>ce ce-[name]<\/strong><\/p>\n<p><em>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/em> \u201c<strong>ce ce-text\u201d<\/strong>\u00a0\u0434\u043b\u044f Text Content Element<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u0438 \u043a \u043d\u0430\u0433\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0438 <em>RCE<\/em> ****\u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c:<\/p>\n<pre><code class=\"css\">@use 'react-content-element\/styles\/utils' as *;  \/* by content element *\/ @include byName {   color: red; } \/\/ CSS .ce {   color: red; }  \/* by content element name *\/ @include byName('text') {   font-size: 16px; } \/\/ CSS .ce-text {   font-size: 16px; } <\/code><\/pre>\n<p>\u041c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043a \u043d\u0438\u043c \u0441\u0442\u0438\u043b\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c \u043a\u0435\u0439\u0441\u0430\u043c.<\/p>\n<h3>Hello, Real Development World!<\/h3>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<\/p>\n<ol>\n<li>\n<p>\u041a\u0430\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0435\u0433\u0430\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &#8216;h1&#8217;, &#8216;section&#8217; \u0438 \u0442.\u0434.)?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0430 \u043d\u0435 \u0446\u0435\u043b\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <em>Text<\/em> \u0438\u043b\u0438 <em>Image<\/em>)? \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441(\u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e JSX \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u2018<em>className<\/em>\u2019) \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c  \u0411\u042d\u041c?<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u043e \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438, \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438, \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043a\u0438, \u043c\u0430\u043a\u0435\u0442\u044b, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u043b\u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b?<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Tag<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Modifiers<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Content<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Config<\/strong><br \/>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (<em>CE<\/em> \u0438\u043b\u0438 <em>JSX<\/em>), \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>If<\/strong> <br \/>\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u0440\u0438\u0432\u043e\u0434\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0442\u0438\u043f\u0443. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e \u00abfalse\u00bb, \u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 null.<\/p>\n<\/li>\n<\/ul>\n<h3>Tag<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u044d\u0433 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u2018tag\u2019<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text tag=\"h1\">Rule your mind or it will rule you.&lt;\/CE.Text> \/\/ HTML &lt;h1 class=\"ce ce-text\">Rule your mind or it will rule you.&lt;\/h1> <\/code><\/pre>\n<h3>Modifiers<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/em> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 &#171;modifiers&#187;<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Link className=\"nav-link\" modifiers={['bold']}>Navigation Link&lt;\/CE.Text> &lt;CE.Link className=\"nav-link\" modifiers={['bold', 'active']}>   Active Navigation Link &lt;\/CE.Text> \/\/ HTML &lt;a class=\"nav-link ce ce-link ce--bold\">Navigation Link&lt;\/a> &lt;a class=\"nav-link ce ce-link ce--bold ce--active\">Active Navigation Link&lt;\/a> <\/code><\/pre>\n<p>\u041a \u043a\u043b\u0430\u0441\u0441\u0430\u043c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 SASS-\u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432:<\/p>\n<pre><code class=\"css\">@use 'react-content-element\/styles\/utils' as *;  \/* by content element modifier *\/ @include byModifier('bold') {   font-weight: bold; } \/\/ CSS .ce--bold {   font-weight: bold; }  \/* by selector with content element modifier *\/ .nav-link {   @include withModifier('active') {     color: red;   } } \/\/ CSS .nav-link.ce--active {   color: red; } <\/code><\/pre>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u0433\u0430:<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text modifiers={['title']}>Be yourself; everyone else is already taken.&lt;\/CE.Text> \/\/ HTML &lt;h3 class=\"ce ce-text ce--title\">Be yourself; everyone else is already taken.&lt;\/h3> <\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0433\u043e\u0432 <em>byName(\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0442\u0435\u0433\u0438)<\/em> \u0438 <em>byModifier(\u043f\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443)<\/em> \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/em>:<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  CE.setup({   tags: {     byName: {       'text': 'p',     },     byModifier: {       'title': 'h3',     },   }, }) <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0438\u0447\u0443 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>Above &amp; Beyond<\/p>\n<p><code>above-[breakpoint-name]<\/code>\u00a0&#8212; \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u0430<\/p>\n<p><code>beyond-[breakpoint-name]<\/code>\u00a0&#8212; \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text modifiers={[\"title-above-xl\", \"accent-beyond-sm\"]}>Don't be dead serious about your life \u2013 it's just a play.&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text ce--title-above-xl ce--accent-beyond-sm\">Don't be dead serious about your life \u2013 it's just a play.&lt;\/p>  &lt;CE.Block modifiers={[\"row-above-md\", \"section-below-xl\"]}>The way you speak to yourself matters.&lt;\/CE.Block> \/\/ HTML &lt;div class=\"ce ce-block ce--row-above-md ce--section-below-xl\">The way you speak to yourself matters.&lt;\/div> <\/code><\/pre>\n<h3>Content<\/h3>\n<p>\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 HTML \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041e\u043d\u043e \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u043c \u043d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 &#171;<em>children<\/em>&#171;.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text content=\"Simplicity is the ultimate sophistication.\"\/> \/\/ HTML &lt;p class=\"ce ce-text\">Simplicity is the ultimate sophistication.&lt;\/p>  &lt;CE.Text content=\"Content by property\">Creativity is intelligence having fun.&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text\">Content by property&lt;\/p> <\/code><\/pre>\n<h3>Config<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u201c<em>config<\/em>\u201d. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0441\u0448\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text config={{ modifiers: ['accent'], tag: 'h2' }}>Simple example with config&lt;\/CE.Text> \/\/ HTML &lt;h2 class=\"ce ce-text ce--accent\">Simple example with config&lt;\/h2>  &lt;CE.Text    tag=\"h3\"   modifiers={['bold']}   config={{     modifiers: ['accent'],      tag: 'h2',      content: '&lt;i>Content by config&lt;\/i>'    }} >   Another example with config &lt;\/CE.Text> \/\/ HTML &lt;h2 class=\"ce ce-text ce--accent\">&lt;i>Content by config&lt;\/i>&lt;\/h2> <\/code><\/pre>\n<h3>If<\/h3>\n<p>\u0411\u0443\u043b\u0435\u0432\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text if={0}>Nothing is impossible&lt;\/CE.Text> \/\/ HTML \/\/ The element is not rendered  &lt;CE.Text if={1}>Everything is possible&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text\">Everything is possible&lt;\/p> <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u0437\u043d\u0430\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u044b \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b:<\/p>\n<ul>\n<li>\n<p><strong>List<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Custom<\/strong><\/p>\n<\/li>\n<\/ul>\n<h3>List<\/h3>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 HTML \u0441\u043f\u0438\u0441\u043a\u0430  \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0434\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (ul \u0438 li). \u0412\u043e\u0442 \u043a\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.List \/> \/\/ HTML &lt;ul class=\"ce ce-list\">&lt;\/ul>  &lt;CE.List>   &lt;CE.Text className=\"first\">1st item&lt;\/CE.Text>   &lt;CE.Text modifiers={['bold']}>2nd item&lt;\/CE.Text> &lt;\/CE.List> \/\/ HTML &lt;ul class=\"ce ce-list\">   &lt;li class=\"first ce ce-item\">     &lt;p class=\"ce ce-text\">1st item&lt;\/p>   &lt;\/li>   &lt;li class=\"ce ce-item\">     &lt;p class=\"ce ce-text ce--bold\">2nd item&lt;\/p>   &lt;\/li> &lt;\/ul>  &lt;CE.List   items={[     { content: '1st item', modifiers: ['accent'] },     { content: '2nd item', tag: 'span' }   ]}   ItemTemplate={CE.Text} \/> \/\/ HTML &lt;ul class=\"ce ce-list\">   &lt;li class=\"ce ce-item\">     &lt;p class=\"ce ce-text ce--accent\">1st item&lt;\/p>   &lt;\/li>   &lt;li class=\"ce ce-item\">     &lt;span class=\"ce ce-text\">2nd item&lt;\/span>   &lt;\/li> &lt;\/ul> <\/code><\/pre>\n<h3>Custom<\/h3>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 &#171;\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187;, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>Custom<\/em> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>getCEClassName<\/em>:<\/p>\n<pre><code class=\"javascript\">import { getCEClassName } from 'react-content-elements';  getCEClassName('example', ['modifier', false &amp;&amp; 'another-modifier']); \/\/ 'ce ce-example ce--modifier' <\/code><\/pre>\n<pre><code class=\"javascript\">\/* custom element *\/ const CustomTable = ({   className,   headerCellModifiers,   cellHeaders,   rowsData, }) => { const baseClassName = getCEClassName('custom-table'); const trHeaderClassName = getCEClassName('custom-table-header'); const thClassName = getCEClassName('custom-table-cell', headerCellModifiers);  const trClassName = getCEClassName('custom-table-row'); const tdClassName = getCEClassName('custom-table-cell');  const TableRow = ({ rowData }: any) => (     &lt;tr className={trClassName}>       {rowData.map((rowValue: string, rowID: string) => (         &lt;td key={rowID} className={tdClassName}>           {rowValue}         &lt;\/td>       ))}     &lt;\/tr>   );  return (     &lt;table className={[className, baseClassName].join(' ')}>       &lt;thead>         &lt;tr className={trHeaderClassName}>           {cellHeaders.map((header: string, headID: string) => (             &lt;th key={headID} className={thClassName}>               {header}             &lt;\/th>           ))}         &lt;\/tr>       &lt;\/thead>       &lt;tbody>         {rowsData.map((rowData: string, rowID: string) => (           &lt;TableRow rowData={rowData} key={rowID} \/>         ))}       &lt;\/tbody>     &lt;\/table>   ); };  \/* usage of custom element *\/ const headers = ['header 1', 'header 2', 'header 3', 'header 4']; const firstRowData = ['cell 1', 'cell 2', 'cell 3', 'cell 4']; const rowsData = [firstRowData]; const headerCellModifiers = ['bold'];  &lt;CE.Custom   CustomTemplate={CustomTable}   cellHeaders={headers}   rowsData={rowsData}   headerCellModifiers={headerCellModifiers} \/> \/* HTML *\/ &lt;table className=\"ce ce-custom-table\">   &lt;thead>   &lt;tr className=\"ce ce-custom-table-header\">     &lt;th className=\"ce ce-custom-table-cell ce--bold\">header 1&lt;\/th>     &lt;th className=\"ce ce-custom-table-cell ce--bold\">header 2&lt;\/th>     &lt;th className=\"ce ce-custom-table-cell ce--bold\">header 3&lt;\/th>     &lt;th className=\"ce ce-custom-table-cell ce--bold\">header 4&lt;\/th>   &lt;\/tr>   &lt;\/thead>   &lt;tbody>   &lt;tr className=\"ce ce-custom-table-row\">     &lt;td className=\"ce ce-custom-table-cell\">cell 1&lt;\/td>     &lt;td className=\"ce ce-custom-table-cell\">cell 2&lt;\/td>     &lt;td className=\"ce ce-custom-table-cell\">cell 3&lt;\/td>     &lt;td className=\"ce ce-custom-table-cell\">cell 4&lt;\/td>   &lt;\/tr>   &lt;\/tbody> &lt;\/table> <\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/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\/articles\/748678\/\"> https:\/\/habr.com\/ru\/articles\/748678\/<\/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><em>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u0430\u0432\u0442\u043e\u0440\u0441\u043a\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 <\/em><a href=\"https:\/\/habr.com\/ru\/articles\/747372\/\" rel=\"noopener noreferrer nofollow\"><em>Web Content Elements<\/em><\/a><\/p>\n<p>\u0412 HTML \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0435\u0433 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u0441\u043a\u0440\u0438\u043c\u0438\u043d\u0430\u0442\u043e\u0440\u0430 &#8212; \u0442\u0435\u0433 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043a HTML \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0442\u0438\u043b\u0438 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0443\u044f\u0441\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u043e\u0431\u0449\u0435\u043f\u0440\u0438\u043d\u044f\u0442\u044b\u043c\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0437 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u043b\u0438\u0447\u043d\u043e, \u043b\u0438\u0431\u043e \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0434 \u0440\u0435\u0432\u044c\u044e.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 HTML \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0433\u043e \u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438\u043b\u0438 \u044d\u0442\u0430\u043f\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430.<\/p>\n<p>Web Content Elements(WCE) &#8212; \u044d\u0442\u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f, \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0438 \u043e\u0434\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e.<\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e WCE, \u0442\u0435\u0433 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<p>?\u00a0\u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u043e \u0438\u0445 \u0440\u043e\u043b\u044f\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u0430 \u043d\u0435 \u0442\u0435\u0433\u0430\u043c.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0440\u043e\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>Block (<em>div, section, main, footer, e.t.c.<\/em>)<\/p>\n<\/li>\n<li>\n<p>Text (<em>p, span, b, e.t.c<\/em>)<\/p>\n<\/li>\n<li>\n<p>Image (<em>img<\/em>)<\/p>\n<\/li>\n<li>\n<p>Link (<em>a<\/em>)<\/p>\n<\/li>\n<li>\n<p>Button (<em>button<\/em>)<\/p>\n<\/li>\n<li>\n<p>Divider (<em>hr<\/em>)<\/p>\n<\/li>\n<li>\n<p>List (<em>ul, ol, dl, e.t.c.<\/em>)<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u043e\u043b\u0438(\u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432):<\/p>\n<ul>\n<li>\n<p>Custom<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 HTML \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e WCE \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><\/figure>\n<p><a href=\"https:\/\/pkuznetsovdev.github.io\/rce\/\" rel=\"noopener noreferrer nofollow\"><em>React Content Elements<\/em><\/a>\u00a0\u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 Web Content Elements \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Typescript \u0438 React.<\/p>\n<p><a href=\"https:\/\/pkuznetsovdev.github.io\/rce\/\" rel=\"noopener noreferrer nofollow\">Official webpage<\/a><\/p>\n<p><a href=\"https:\/\/www.npmjs.com\/package\/react-content-elements\" rel=\"noopener noreferrer nofollow\">NPM package<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/pkuznetsovdev\/react-content-elements\" rel=\"noopener noreferrer nofollow\">Github<\/a><\/p>\n<h3>Basics<\/h3>\n<p><em>Content Elements(CE)<\/em> \u043d\u0430\u0437\u0432\u0430\u043d\u044b \u043f\u043e \u0440\u043e\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b(DOM \u0434\u0435\u0440\u0435\u0432\u0430).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/em>:<\/p>\n<pre><code class=\"javascript\">import CE from 'react-content-elements';  &lt;CE.Block>Block Content Element&lt;\/CE.Block> \/\/ HTML &lt;div class=\"ce ce-block\">Block Content Element&lt;\/div>  &lt;CE.Text className=\"class-name\">Text Content Element&lt;\/CE.Text> \/\/ HTML &lt;p class=\"class-name ce ce-text\">Text Content Element&lt;\/p>  &lt;CE.Image src=\"link\/to\/the-image.jpg\" \/> \/\/ HTML &lt;img class=\"ce ce-image\" src=\"link\/to\/the-image.jpg\" \/>    &lt;CE.Link>Link Content Element&lt;\/CE.Link> \/\/ HTML &lt;a class=\"ce ce-link\">Link Content Element&lt;\/a>  &lt;CE.Button>Button Content Element&lt;\/CE.Button> \/\/ HTML &lt;button class=\"ce ce-link\" type=\"button\">Button Content Element&lt;\/button>  &lt;CE.Divider \/> \/\/ HTML &lt;hr class=\"ce ce-divider\" \/> <\/code><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u0438\u043c\u0435\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0442\u0435\u0433<\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, <em>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/em> \u2018<strong>p<\/strong>\u2019 \u0434\u043b\u044f Text Content Element<\/p>\n<\/li>\n<li>\n<p>\u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441:\u00a0<strong>ce ce-[name]<\/strong><\/p>\n<p><em>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<\/em> \u201c<strong>ce ce-text\u201d<\/strong>\u00a0\u0434\u043b\u044f Text Content Element<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u0438 \u043a \u043d\u0430\u0433\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0438 <em>RCE<\/em> ****\u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c:<\/p>\n<pre><code class=\"css\">@use 'react-content-element\/styles\/utils' as *;  \/* by content element *\/ @include byName {   color: red; } \/\/ CSS .ce {   color: red; }  \/* by content element name *\/ @include byName('text') {   font-size: 16px; } \/\/ CSS .ce-text {   font-size: 16px; } <\/code><\/pre>\n<p>\u041c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043a \u043d\u0438\u043c \u0441\u0442\u0438\u043b\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c \u043a\u0435\u0439\u0441\u0430\u043c.<\/p>\n<h3>Hello, Real Development World!<\/h3>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<\/p>\n<ol>\n<li>\n<p>\u041a\u0430\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0435\u0433\u0430\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &#8216;h1&#8217;, &#8216;section&#8217; \u0438 \u0442.\u0434.)?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0430 \u043d\u0435 \u0446\u0435\u043b\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <em>Text<\/em> \u0438\u043b\u0438 <em>Image<\/em>)? \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441(\u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e JSX \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u2018<em>className<\/em>\u2019) \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c  \u0411\u042d\u041c?<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u043e \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438, \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438, \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043a\u0438, \u043c\u0430\u043a\u0435\u0442\u044b, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u043b\u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b?<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/em> \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Tag<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Modifiers<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Content<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ul>\n<li>\n<p><strong>Config<\/strong><br \/>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (<em>CE<\/em> \u0438\u043b\u0438 <em>JSX<\/em>), \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>If<\/strong> <br \/>\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u0440\u0438\u0432\u043e\u0434\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0442\u0438\u043f\u0443. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e \u00abfalse\u00bb, \u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 null.<\/p>\n<\/li>\n<\/ul>\n<h3>Tag<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u044d\u0433 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u2018tag\u2019<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text tag=\"h1\">Rule your mind or it will rule you.&lt;\/CE.Text> \/\/ HTML &lt;h1 class=\"ce ce-text\">Rule your mind or it will rule you.&lt;\/h1> <\/code><\/pre>\n<h3>Modifiers<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/em> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 &#171;modifiers&#187;<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Link className=\"nav-link\" modifiers={['bold']}>Navigation Link&lt;\/CE.Text> &lt;CE.Link className=\"nav-link\" modifiers={['bold', 'active']}>   Active Navigation Link &lt;\/CE.Text> \/\/ HTML &lt;a class=\"nav-link ce ce-link ce--bold\">Navigation Link&lt;\/a> &lt;a class=\"nav-link ce ce-link ce--bold ce--active\">Active Navigation Link&lt;\/a> <\/code><\/pre>\n<p>\u041a \u043a\u043b\u0430\u0441\u0441\u0430\u043c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 SASS-\u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432:<\/p>\n<pre><code class=\"css\">@use 'react-content-element\/styles\/utils' as *;  \/* by content element modifier *\/ @include byModifier('bold') {   font-weight: bold; } \/\/ CSS .ce--bold {   font-weight: bold; }  \/* by selector with content element modifier *\/ .nav-link {   @include withModifier('active') {     color: red;   } } \/\/ CSS .nav-link.ce--active {   color: red; } <\/code><\/pre>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0442\u0435\u0433\u0430:<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text modifiers={['title']}>Be yourself; everyone else is already taken.&lt;\/CE.Text> \/\/ HTML &lt;h3 class=\"ce ce-text ce--title\">Be yourself; everyone else is already taken.&lt;\/h3> <\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0442\u0435\u0433\u043e\u0432 <em>byName(\u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0442\u0435\u0433\u0438)<\/em> \u0438 <em>byModifier(\u043f\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0443)<\/em> \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e <em>CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/em>:<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  CE.setup({   tags: {     byName: {       'text': 'p',     },     byModifier: {       'title': 'h3',     },   }, }) <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0438\u0447\u0443 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>Above &amp; Beyond<\/p>\n<p><code>above-[breakpoint-name]<\/code>\u00a0&#8212; \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u0430<\/p>\n<p><code>beyond-[breakpoint-name]<\/code>\u00a0&#8212; \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u0448\u0438\u0440\u0438\u043d\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text modifiers={[\"title-above-xl\", \"accent-beyond-sm\"]}>Don't be dead serious about your life \u2013 it's just a play.&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text ce--title-above-xl ce--accent-beyond-sm\">Don't be dead serious about your life \u2013 it's just a play.&lt;\/p>  &lt;CE.Block modifiers={[\"row-above-md\", \"section-below-xl\"]}>The way you speak to yourself matters.&lt;\/CE.Block> \/\/ HTML &lt;div class=\"ce ce-block ce--row-above-md ce--section-below-xl\">The way you speak to yourself matters.&lt;\/div> <\/code><\/pre>\n<h3>Content<\/h3>\n<p>\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 HTML \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041e\u043d\u043e \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u043c \u043d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 &#171;<em>children<\/em>&#171;.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text content=\"Simplicity is the ultimate sophistication.\"\/> \/\/ HTML &lt;p class=\"ce ce-text\">Simplicity is the ultimate sophistication.&lt;\/p>  &lt;CE.Text content=\"Content by property\">Creativity is intelligence having fun.&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text\">Content by property&lt;\/p> <\/code><\/pre>\n<h3>Config<\/h3>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u201c<em>config<\/em>\u201d. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0441\u0448\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text config={{ modifiers: ['accent'], tag: 'h2' }}>Simple example with config&lt;\/CE.Text> \/\/ HTML &lt;h2 class=\"ce ce-text ce--accent\">Simple example with config&lt;\/h2>  &lt;CE.Text    tag=\"h3\"   modifiers={['bold']}   config={{     modifiers: ['accent'],      tag: 'h2',      content: '&lt;i>Content by config&lt;\/i>'    }} >   Another example with config &lt;\/CE.Text> \/\/ HTML &lt;h2 class=\"ce ce-text ce--accent\">&lt;i>Content by config&lt;\/i>&lt;\/h2> <\/code><\/pre>\n<h3>If<\/h3>\n<p>\u0411\u0443\u043b\u0435\u0432\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044e. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.Text if={0}>Nothing is impossible&lt;\/CE.Text> \/\/ HTML \/\/ The element is not rendered  &lt;CE.Text if={1}>Everything is possible&lt;\/CE.Text> \/\/ HTML &lt;p class=\"ce ce-text\">Everything is possible&lt;\/p> <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u0437\u043d\u0430\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u044b \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c. \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b:<\/p>\n<ul>\n<li>\n<p><strong>List<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>Custom<\/strong><\/p>\n<\/li>\n<\/ul>\n<h3>List<\/h3>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 HTML \u0441\u043f\u0438\u0441\u043a\u0430  \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0434\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 (ul \u0438 li). \u0412\u043e\u0442 \u043a\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CE \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"javascript\">import CEfrom 'react-content-elements';  &lt;CE.List \/> \/\/ HTML &lt;ul class=\"ce ce-list\">&lt;\/ul>  &lt;CE.List>   &lt;CE.Text className=\"first\">1st item&lt;\/CE.Text>   &lt;CE.Text modifiers={['bold']}>2nd item&lt;\/CE.Text> &lt;\/CE.List> \/\/ HTML &lt;ul class=\"ce ce-list\">   &lt;li class=\"first ce ce-item\">     &lt;p class=\"ce ce-text\">1st item&lt;\/p>   &lt;\/li>   &lt;li class=\"ce ce-item\">     &lt;p class=\"ce ce-text ce--bold\">2nd item&lt;\/p>   &lt;\/li> &lt;\/ul>  &lt;CE.List   items={[     { content: '1st item', modifiers: ['accent'] },     { content: '2nd item', tag: 'span' }   ]}   ItemTemplate={CE.Text} \/> \/\/ HTML &lt;ul class=\"ce ce-list\">   &lt;li class=\"ce ce-item\">     &lt;p class=\"ce ce-text ce--accent\">1st item&lt;\/p>   &lt;\/li>   &lt;li class=\"ce ce-item\">     &lt;span class=\"ce ce-text\">2nd item&lt;\/span>   &lt;\/li> &lt;\/ul> <\/code><\/pre>\n<h3>Custom<\/h3>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 &#171;\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187;, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>Custom<\/em> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>getCEClassName<\/em>:<\/p>\n<pre><code class=\"javascript\">import { getCEClassName } from 'react-content-elements';  getCEClassName('example', ['modifier', false &amp;&amp; 'another-modifier']); \/\/ 'ce ce-example ce--modifier' <\/code><\/pre>\n<pre><code class=\"javascript\">\/* custom element *\/ const CustomTable = ({   className,   headerCellModifiers,   cellHeaders,   rowsData, }) => { const baseClassName = getCEClassName('custom-table'); const trHeaderClassName = getCEClassName('custom-table-header'); const thClassName = getCEClassName('custom-table-cell', headerCellModifiers);  const trClassName = getCEClassName('custom-table-row'); const tdClassName =<\/code><\/pre>\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-350394","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350394","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=350394"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/350394\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}