{"id":11033,"date":"2023-12-29T07:31:06","date_gmt":"2023-12-29T04:01:06","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/"},"modified":"2023-12-29T07:31:06","modified_gmt":"2023-12-29T04:01:06","slug":"%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/","title":{"rendered":"\u0627\u0631\u0633\u0627\u0644 Props \u0628\u0647 this.props.children \u062f\u0631 ReactJS"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%d9%85%d8%b9%d8%b1%d9%81%db%8c\" >\u0645\u0639\u0631\u0641\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#props_%d8%af%d8%b1_react\" >Props \u062f\u0631 React<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%da%86%d8%b1%d8%a7_props_%d8%b1%d8%a7_%d8%a8%d9%87_thispropschildren_%d9%85%d9%86%d8%aa%d9%82%d9%84_%da%a9%d9%86%db%8c%d8%af%d8%9f\" >\u0686\u0631\u0627 Props \u0631\u0627 \u0628\u0647 this.props.children \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u062f\u061f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%da%86%da%af%d9%88%d9%86%d9%87_props_%d8%b1%d8%a7_%d8%a8%d9%87_thispropschildren_%d9%85%d9%86%d8%aa%d9%82%d9%84_%da%a9%d9%86%db%8c%d9%85\" >\u0686\u06af\u0648\u0646\u0647 Props \u0631\u0627 \u0628\u0647 this.props.children \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u0645<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%d9%85%d8%ab%d8%a7%d9%84\" >\u0645\u062b\u0627\u0644<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_context_api_%d9%88_reactcloneelement\" >\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Context API \u0648 React.cloneElement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%a7%d8%b1%d8%b3%d8%a7%d9%84-props-%d8%a8%d9%87-this-props-children-%d8%af%d8%b1-reactjs\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div class=\"mt-8 content\"><noscript><\/p>\n<style>.lazyload-placeholder { display: none;  }<\/style>\n<p><\/noscript><\/p>\n<h2 id=\"introduction\"><span class=\"ez-toc-section\" id=\"%d9%85%d8%b9%d8%b1%d9%81%db%8c\"><\/span>\u0645\u0639\u0631\u0641\u06cc<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062a \u0645\u0627 \u0646\u06af\u0627\u0647\u06cc \u0628\u0647 \u0645\u0641\u0647\u0648\u0645 \u067e\u0627\u0633 \u06a9\u0631\u062f\u0646 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 \u0622\u0646 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u0634\u062a <code>this.props.children<\/code> \u062f\u0631 React.  \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u062e\u0634 \u0645\u0647\u0645\u06cc \u0627\u0632 \u06a9\u0627\u0631 \u0628\u0627 \u0645\u0639\u0645\u0627\u0631\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a React \u0627\u0633\u062a.  \u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062a\u060c \u0628\u0627\u06cc\u062f \u0628\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0627\u062c\u0632\u0627\u06cc \u06a9\u0648\u062f\u06a9 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u0686\u0631\u0627 \u062f\u0631 \u062a\u0648\u0633\u0639\u0647 React \u062a\u0645\u0631\u06cc\u0646 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a.<\/p>\n<h2 id=\"propsinreact\"><span class=\"ez-toc-section\" id=\"props_%d8%af%d8%b1_react\"><\/span>Props \u062f\u0631 React<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0631 React\u060c \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0647\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0646\u062f <code>props<\/code> (\u0645\u062e\u0641\u0641 \u00ab\u062e\u0648\u0627\u0635\u00bb).  Props \u0631\u0648\u0634 \u0635\u062d\u0628\u062a \u0627\u062c\u0632\u0627 \u0628\u0627 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0627\u0633\u062a.  \u0622\u0646\u0647\u0627 \u0627\u0646\u062a\u0642\u0627\u0644 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0631\u0627 \u0627\u0632 \u06cc\u06a9 \u062c\u0632\u0621 \u0648\u0627\u0644\u062f \u0628\u0647 \u06cc\u06a9 \u062c\u0632\u0621 \u0641\u0631\u0632\u0646\u062f \u0627\u0645\u06a9\u0627\u0646 \u067e\u0630\u06cc\u0631 \u0645\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0633\u0627\u062f\u0647 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">Welcome<\/span>(<span class=\"hljs-params\">props<\/span>) <\/span>{\n  <span class=\"hljs-keyword\">return<\/span> <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">h1<\/span>&gt;<\/span>Hello, {props.name}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">h1<\/span>&gt;<\/span><\/span>;\n}\n\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">App<\/span>(<span class=\"hljs-params\"><\/span>) <\/span>{\n  <span class=\"hljs-keyword\">return<\/span> <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Welcome<\/span> <span class=\"hljs-attr\">name<\/span>=<span class=\"hljs-string\">\"Sarah\"<\/span> \/&gt;<\/span><\/span>;\n}\n\nReactDOM.render(\n  <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">App<\/span> \/&gt;<\/span><\/span>,\n  <span class=\"hljs-built_in\">document<\/span>.getElementById(<span class=\"hljs-string\">'root'<\/span>)\n);\n<\/code><\/pre>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u0627 \u062f\u0631 \u062d\u0627\u0644 \u0639\u0628\u0648\u0631 \u0627\u0632 \u06cc\u06a9 <code>name<\/code> \u062a\u06a9\u06cc\u0647 \u06af\u0627\u0647 \u0627\u0632 <code>App<\/code> \u062c\u0632\u0621 \u0628\u0647 <code>Welcome<\/code> \u062c\u0632\u0621.<\/p>\n<h2 id=\"whypasspropstothispropschildren\"><span class=\"ez-toc-section\" id=\"%da%86%d8%b1%d8%a7_props_%d8%b1%d8%a7_%d8%a8%d9%87_thispropschildren_%d9%85%d9%86%d8%aa%d9%82%d9%84_%da%a9%d9%86%db%8c%d8%af%d8%9f\"><\/span>\u0686\u0631\u0627 Props \u0631\u0627 \u0628\u0647 this.props.children \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u062f\u061f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06a9\u0646\u0648\u0646\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062e\u0648\u062f \u0628\u067e\u0631\u0633\u06cc\u062f \u06a9\u0647 \u0686\u0631\u0627 \u0645\u0627 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u0645 \u0648\u0633\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0647 \u0622\u0646\u0647\u0627 \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u0645 <code>this.props.children<\/code>?  \u0627\u06cc\u0646 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0632\u0645\u0627\u0646\u06cc \u0645\u0641\u06cc\u062f \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u062c\u0632\u0627\u06cc \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f \u0648 \u062c\u062f\u0627 \u0634\u062f\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u062f\u0631 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 React\u060c \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0647\u0627\u06cc\u06cc \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u0627\u0641\u062a \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0646\u0633\u0628\u062a \u0628\u0647 \u0641\u0631\u0632\u0646\u062f\u0627\u0646\u0634\u0627\u0646 \u0646\u0627\u0634\u0646\u0627\u0633 \u0628\u0627\u0634\u0646\u062f.  \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u06a9\u0647 \u0622\u0646\u0647\u0627 \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u062f\u0627\u0646\u0633\u062a\u0646 \u062c\u0632\u0626\u06cc\u0627\u062a \u062f\u0631 \u0645\u0648\u0631\u062f \u0627\u062c\u0632\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u062e\u0648\u062f \u0646\u062f\u0627\u0631\u0646\u062f.  \u0627\u06cc\u0646\u062c\u0627\u0633\u062a \u06a9\u0647 <code>this.props.children<\/code> \u062c\u0644\u0648 \u0645\u06cc \u0622\u06cc\u062f.<\/p>\n<p><code>this.props.children<\/code>  \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0627\u062c\u0632\u0627\u06cc\u06cc \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062f\u0627\u062f\u0647 \u0628\u0647 \u0627\u062c\u0632\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u062f\u060c \u0648 \u06cc\u06a9 &#8220;\u0634\u0627\u062e\u0647&#8221; \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0627\u062c\u0632\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0648\u0627\u0631\u062f \u0634\u0648\u0646\u062f.<\/p>\n<div class=\"alert alert-note\">\n<div class=\"flex\">\n<div class=\"flex-shrink-0 mr-3\"><\/div>\n<div class=\"w-full\">\n<p><strong>\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f:<\/strong> <code>this.props.children<\/code>  \u062e\u0648\u062f \u06cc\u06a9 \u062a\u06a9\u06cc\u0647 \u06af\u0627\u0647 \u0646\u06cc\u0633\u062a\u060c \u0627\u0645\u0627 \u06cc\u06a9 \u0648\u06cc\u0698\u06af\u06cc \u0627\u0633\u062a <code>this.props<\/code> \u06a9\u0647 React \u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/p><\/div><\/div><\/div>\n<h2 id=\"howtopasspropstothispropschildren\"><span class=\"ez-toc-section\" id=\"%da%86%da%af%d9%88%d9%86%d9%87_props_%d8%b1%d8%a7_%d8%a8%d9%87_thispropschildren_%d9%85%d9%86%d8%aa%d9%82%d9%84_%da%a9%d9%86%db%8c%d9%85\"><\/span>\u0686\u06af\u0648\u0646\u0647 Props \u0631\u0627 \u0628\u0647 this.props.children \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u0645<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u067e\u0627\u0633 \u062f\u0627\u062f\u0646 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 <code>this.props.children<\/code> \u06a9\u0645\u06cc \u0633\u062e\u062a \u062a\u0631 \u0627\u0632 \u067e\u0627\u0633 \u0647\u0627\u06cc \u0645\u0639\u0645\u0648\u0644\u06cc \u0627\u0633\u062a.  \u0645\u0627 \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0645\u0627\u0646\u0646\u062f \u0645\u0648\u0627\u0631\u062f \u0645\u0639\u0645\u0648\u0644\u06cc \u0628\u0647 \u0637\u0648\u0631 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0648\u0633\u0627\u06cc\u0644 \u0631\u0627 \u067e\u0627\u0633 \u06a9\u0646\u06cc\u0645.  \u062f\u0631 \u0639\u0648\u0636\u060c \u0645\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0631\u0648\u0634 \u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f <code>React.Children.map<\/code> \u0648 <code>React.cloneElement<\/code>.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0627\u0633\u062a:<\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Parent<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">React<\/span>.<span class=\"hljs-title\">Component<\/span> <\/span>{\n  <span class=\"hljs-function\"><span class=\"hljs-title\">render<\/span>(<span class=\"hljs-params\"><\/span>)<\/span> {\n    <span class=\"hljs-keyword\">return<\/span> React.Children.map(<span class=\"hljs-built_in\">this<\/span>.props.children, <span class=\"hljs-function\"><span class=\"hljs-params\">child<\/span> =&gt;<\/span> {\n      <span class=\"hljs-keyword\">return<\/span> React.cloneElement(child, { <span class=\"hljs-attr\">parentState<\/span>: <span class=\"hljs-built_in\">this<\/span>.state });\n    });\n  }\n}\n<\/code><\/pre>\n<div data-nosnippet=\"\" id=\"newsletter\">\n<div class=\"bg-gray-100 border rounded my-8\">\n<div class=\"py-3 px-3 sm:px-4 lg:py-6 lg:px-6\">\n<div class=\"text-center\"><span class=\"text-xl font-extrabold tracking-tight text-gray-600 sm:text-2xl\">\u062f\u0648\u0631\u0647 \u0647\u0627\u06cc \u0631\u0627\u06cc\u06af\u0627\u0646\u060c \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u0647\u062f\u0627\u06cc\u062a \u0634\u062f\u0647 \u0648 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f<\/span><\/div>\n<div class=\"mt-4\">\n<div class=\"flex justify-center\">\n<div class=\"flex-grow flex-col justify-center\">\n<form class=\"group sm:flex sm:justify-center\"><label for=\"email-address\" class=\"sr-only\">\u0622\u062f\u0631\u0633 \u0627\u06cc\u0645\u06cc\u0644<\/label><input id=\"email-address\" name=\"email-address\" type=\"email\" autocomplete=\"email\" required=\"\" class=\"flex-1 w-full sm:max-w-md px-5 py-3 border sm:border-r-0 border-gray-400 placeholder-gray-500 rounded-md sm:rounded-r-none sm:rounded-l-md focus:ring-0 focus:border-gray-900\" placeholder=\"Enter your email\" value=\"\"><\/p>\n<div class=\"mt-3 sm:mt-0 sm:flex-shrink-0\"><button type=\"submit\" class=\"w-full flex items-center justify-center px-5 py-3 rounded-md sm:rounded-l-none sm:rounded-r-md shadow border border-transparent text-base font-medium text-white bg-orange-500 hover:bg-orange-600\">\u0627\u0634\u062a\u0631\u0627\u06a9 \u062f\u0631<\/button><\/div>\n<\/form>\n<p class=\"text-center mt-3 text-sm text-gray-500\">\u0628\u062f\u0648\u0646 \u0647\u0631\u0632\u0646\u0627\u0645\u0647 \u0647\u0631\u06af\u0632.  \u0644\u063a\u0648 \u0627\u0634\u062a\u0631\u0627\u06a9 \u062f\u0631 \u0647\u0631 \u0632\u0645\u0627\u0646.  \u0645\u0627 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u06cc\u062f<!-- --> \u0633\u06cc\u0627\u0633\u062a \u062d\u0641\u0638 \u062d\u0631\u06cc\u0645 \u062e\u0635\u0648\u0635\u06cc.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c \u0645\u0627 \u0627\u0632 <code>React.Children.map<\/code> \u0628\u0631\u0627\u06cc \u062a\u06a9\u0631\u0627\u0631 \u0631\u0648\u06cc \u0647\u0631 \u06a9\u0648\u062f\u06a9 \u062f\u0631 <code>this.props.children<\/code>.  \u0633\u067e\u0633\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 <code>React.cloneElement<\/code> \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u06a9\u067e\u06cc \u0627\u0632 \u0647\u0631 \u0639\u0646\u0635\u0631 \u0641\u0631\u0632\u0646\u062f\u060c \u0648 \u0627\u0646\u062a\u0642\u0627\u0644 \u0648\u0636\u0639\u06cc\u062a \u0648\u0627\u0644\u062f \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u067e\u0634\u062a\u0648\u0627\u0646\u0647 \u0628\u0647 \u06a9\u0648\u062f\u06a9.  \u0639\u0646\u0635\u0631 \u0631\u0627 \u06a9\u067e\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u06cc\u06a9 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0628\u0627 \u0622\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645 <em>\u0627\u0636\u0627\u0641\u06cc \u06cc\u0627 \u0628\u0627\u0632\u0646\u0648\u06cc\u0633\u06cc \u0634\u062f\u0647<\/em> \u0644\u0648\u0627\u0632\u0645 \u062c\u0627\u0646\u0628\u06cc<\/p>\n<p>\u0628\u0647 \u0627\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628\u060c \u0627\u062c\u0632\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u062d\u0627\u0644\u062a \u0648\u0627\u0644\u062f\u06cc\u0646 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc \u06a9\u0646\u0646\u062f \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0648\u0627\u0644\u062f\u06cc\u0646 \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u062f\u0627\u0646\u0633\u062a\u0646 \u062c\u0632\u0626\u06cc\u0627\u062a \u062f\u0631 \u0645\u0648\u0631\u062f \u0641\u0631\u0632\u0646\u062f\u0627\u0646 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f.  \u0627\u06cc\u0646 \u0628\u0627\u0639\u062b \u0645\u06cc \u0634\u0648\u062f \u0627\u062c\u0632\u0627\u06cc \u0645\u0627 \u0642\u0627\u0628\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u062c\u062f\u062f \u0648 \u062c\u062f\u0627 \u0634\u0648\u0646\u062f.<\/p>\n<h2 id=\"example\"><span class=\"ez-toc-section\" id=\"%d9%85%d8%ab%d8%a7%d9%84\"><\/span>\u0645\u062b\u0627\u0644<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0627\u06cc\u062f\u0647 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u067e\u0648\u0634\u0634 \u062f\u0627\u062f\u06cc\u0645\u060c \u0628\u06cc\u0627\u06cc\u06cc\u062f \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0639\u0645\u0644\u06cc \u0628\u0628\u06cc\u0646\u06cc\u0645.  \u0645\u0627 \u06cc\u06a9 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f <code>Parent<\/code> \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0648 \u0644\u0648\u0627\u0632\u0645 \u062c\u0627\u0646\u0628\u06cc \u0631\u0627 \u0628\u0647 \u0645\u0624\u0644\u0641\u0647 \u0647\u0627\u06cc \u0641\u0631\u0632\u0646\u062f \u062e\u0648\u062f \u0645\u0646\u062a\u0642\u0644 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-keyword\">import<\/span> React, { Component } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'react'<\/span>;\n\n<span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Parent<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">Component<\/span> <\/span>{\n  <span class=\"hljs-function\"><span class=\"hljs-title\">render<\/span>(<span class=\"hljs-params\"><\/span>)<\/span> {\n    <span class=\"hljs-keyword\">const<\/span> childrenWithProps = React.Children.map(<span class=\"hljs-built_in\">this<\/span>.props.children, <span class=\"hljs-function\"><span class=\"hljs-params\">child<\/span> =&gt;<\/span> {\n      <span class=\"hljs-keyword\">return<\/span> React.cloneElement(child, { <span class=\"hljs-attr\">parentData<\/span>: <span class=\"hljs-string\">'Hello from Parent'<\/span> });\n    });\n\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">div<\/span>&gt;<\/span>{childrenWithProps}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">div<\/span>&gt;<\/span><\/span>;\n  }\n}\n\n<span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Child<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">Component<\/span> <\/span>{\n  <span class=\"hljs-function\"><span class=\"hljs-title\">render<\/span>(<span class=\"hljs-params\"><\/span>)<\/span> {\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p<\/span>&gt;<\/span>{this.props.parentData}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">p<\/span>&gt;<\/span><\/span>;\n  }\n}\n\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">default<\/span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">App<\/span>(<span class=\"hljs-params\"><\/span>) <\/span>{\n  <span class=\"hljs-keyword\">return<\/span> (\n    <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Parent<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">Parent<\/span>&gt;<\/span><\/span>\n  );\n}\n<\/code><\/pre>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c <code>Parent<\/code> \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u062f\u0631 \u062d\u0627\u0644 \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0641\u0631\u0632\u0646\u062f\u0627\u0646 \u062e\u0648\u062f \u0648 \u067e\u0627\u0633 \u062f\u0627\u062f\u0646 \u06cc\u06a9 \u062a\u06a9\u06cc\u0647 \u06af\u0627\u0647 \u0627\u0633\u062a\u060c <code>parentData<\/code>\u060c \u0628\u0647 \u0647\u0631 \u06cc\u06a9.  \u0647\u0631 \u06cc\u06a9 <code>Child<\/code> \u0633\u067e\u0633 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0627\u06cc\u0646 prop \u0631\u0627 \u0631\u0646\u062f\u0631 \u0645\u06cc \u06a9\u0646\u062f.  \u00ab\u0633\u0644\u0627\u0645 \u0627\u0632 \u0648\u0627\u0644\u062f\u06cc\u0646\u00bb \u0631\u0627 \u0633\u0647 \u0628\u0627\u0631 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f \u0631\u0648\u06cc \u0631\u0627 page.<\/p>\n<h2 id=\"usingcontextapiandreactcloneelement\"><span class=\"ez-toc-section\" id=\"%d8%a8%d8%a7_%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87_%d8%a7%d8%b2_context_api_%d9%88_reactcloneelement\"><\/span>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Context API \u0648 React.cloneElement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u06af\u0627\u0647\u06cc \u0627\u0648\u0642\u0627\u062a\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0644\u0627\u0632\u0645 \u0628\u0627\u0634\u062f \u0648\u0633\u0627\u06cc\u0644 \u0631\u0627 \u0627\u0632 \u0686\u0646\u062f\u06cc\u0646 \u0633\u0637\u062d \u0627\u0632 \u06a9\u0648\u062f\u06a9\u0627\u0646 \u0639\u0628\u0648\u0631 \u062f\u0647\u06cc\u062f.  \u0627\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0633\u0631\u0639\u062a \u062e\u0633\u062a\u0647 \u06a9\u0646\u0646\u062f\u0647 \u0634\u0648\u062f \u0648 \u0645\u0646\u062c\u0631 \u0628\u0647 \u0686\u06cc\u0632\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 &#8220;\u062d\u0641\u0627\u0631\u06cc \u067e\u0627\u06cc\u0647&#8221; \u0634\u0646\u0627\u062e\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f.  \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0627\u06cc\u0646\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 Context API \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>Context API \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0631\u0627 \u0628\u06cc\u0646 \u0645\u0624\u0644\u0641\u0647 \u0647\u0627 \u0628\u0647 \u0627\u0634\u062a\u0631\u0627\u06a9 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f \u0628\u062f\u0648\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u0639\u0628\u0648\u0631 \u0635\u0631\u06cc\u062d \u067e\u0627\u06cc\u0647 \u0627\u0632 \u0647\u0631 \u0633\u0637\u062d \u062f\u0631\u062e\u062a \u0628\u0627\u0634\u062f.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0631\u0648\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Context API \u0648 <code>React.cloneElement<\/code> \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0646 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 \u06a9\u0648\u062f\u06a9\u0627\u0646\u06cc \u06a9\u0647 \u0639\u0645\u06cc\u0642\u0627\u064b \u0644\u0627\u0646\u0647 \u06a9\u0631\u062f\u0647 \u0627\u0646\u062f:<\/p>\n<pre><code class=\"hljs\"><span class=\"hljs-keyword\">import<\/span> React, { Component, createContext } <span class=\"hljs-keyword\">from<\/span> <span class=\"hljs-string\">'react'<\/span>;\n\n<span class=\"hljs-keyword\">const<\/span> ParentDataContext = createContext();\n\n<span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Parent<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">Component<\/span> <\/span>{\n  <span class=\"hljs-function\"><span class=\"hljs-title\">render<\/span>(<span class=\"hljs-params\"><\/span>)<\/span> {\n    <span class=\"hljs-keyword\">const<\/span> childrenWithProps = React.Children.map(<span class=\"hljs-built_in\">this<\/span>.props.children, <span class=\"hljs-function\"><span class=\"hljs-params\">child<\/span> =&gt;<\/span> {\n      <span class=\"hljs-keyword\">return<\/span> React.cloneElement(child, { <span class=\"hljs-attr\">parentData<\/span>: <span class=\"hljs-string\">'Hello from Parent'<\/span> });\n    });\n\n    <span class=\"hljs-keyword\">return<\/span> (\n      <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">ParentDataContext.Provider<\/span> <span class=\"hljs-attr\">value<\/span>=<span class=\"hljs-string\">{this.props.parentData}<\/span>&gt;<\/span>\n        {childrenWithProps}\n      <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">ParentDataContext.Provider<\/span>&gt;<\/span><\/span>\n    );\n  }\n}\n\n<span class=\"hljs-class\"><span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title\">Child<\/span> <span class=\"hljs-keyword\">extends<\/span> <span class=\"hljs-title\">Component<\/span> <\/span>{\n  <span class=\"hljs-keyword\">static<\/span> contextType = ParentDataContext;\n\n  <span class=\"hljs-function\"><span class=\"hljs-title\">render<\/span>(<span class=\"hljs-params\"><\/span>)<\/span> {\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">p<\/span>&gt;<\/span>{this.context}<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">p<\/span>&gt;<\/span><\/span>;\n  }\n}\n\n<span class=\"hljs-keyword\">export<\/span> <span class=\"hljs-keyword\">default<\/span> <span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">App<\/span>(<span class=\"hljs-params\"><\/span>) <\/span>{\n  <span class=\"hljs-keyword\">return<\/span> (\n    <span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Parent<\/span>&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n      <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">Child<\/span> \/&gt;<\/span>\n    <span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">Parent<\/span>&gt;<\/span><\/span>\n  );\n}\n<\/code><\/pre>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c \u0645\u0627 \u06cc\u06a9 \u0632\u0645\u06cc\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645\u060c <code>ParentDataContext<\/code>.  \u0645\u0648\u0644\u0641\u0647 \u0648\u0627\u0644\u062f \u0627\u06cc\u0646 \u0632\u0645\u06cc\u0646\u0647 \u0631\u0627 \u0628\u0627 \u06cc\u06a9 \u0645\u0642\u062f\u0627\u0631 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f\u060c <code>parentData<\/code>\u0648 \u0633\u067e\u0633 \u0647\u0631 \u062c\u0632\u0621 Child \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0627\u0632 \u0645\u062a\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u062f.<\/p>\n<h2 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062a\u060c \u0645\u0627 \u0628\u0647 \u0631\u0648\u0634 \u0627\u0631\u0633\u0627\u0644 props \u0628\u0647 \u0622\u0646 \u0646\u06af\u0627\u0647 \u06a9\u0631\u062f\u06cc\u0645 <code>this.props.children<\/code> \u062f\u0631 React.  \u0645\u0627 \u062f\u06cc\u062f\u0647 \u0627\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 <code>React.cloneElement<\/code> \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0627\u062c\u0632\u0627\u06cc \u06a9\u0648\u062f\u06a9 \u0648 \u0627\u0631\u0633\u0627\u0644 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.  \u0645\u0627 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Context API \u0631\u0627 \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 &#8220;\u062d\u0641\u0627\u0631\u06cc \u067e\u0627\u06cc\u0647&#8221; \u0648 \u0627\u0631\u0633\u0627\u0644 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 \u06a9\u0648\u062f\u06a9\u0627\u0646 \u0639\u0645\u06cc\u0642\u0627 \u062a\u0648 \u062f\u0631 \u062a\u0648 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0627\u06cc\u0645.<\/p>\n<\/div>\n<p><br \/>\n<br \/>\u0645\u0646\u062a\u0634\u0631 \u0634\u062f\u0647 \u062f\u0631 1402-12-29 07:31:03<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;11033&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0627\u0631\u0633\u0627\u0644 Props \u0628\u0647 this.props.children \u062f\u0631 ReactJS&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0645\u0639\u0631\u0641\u06cc \u062f\u0631 \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062a \u0645\u0627 \u0646\u06af\u0627\u0647\u06cc \u0628\u0647 \u0645\u0641\u0647\u0648\u0645 \u067e\u0627\u0633 \u06a9\u0631\u062f\u0646 \u0648\u0633\u0627\u06cc\u0644 \u0628\u0647 \u0622\u0646 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u0634\u062a this.props.children \u062f\u0631 React. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u062e\u0634 \u0645\u0647\u0645\u06cc \u0627\u0632 \u06a9\u0627\u0631 \u0628\u0627 \u0645\u0639\u0645\u0627\u0631\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a React \u0627\u0633\u062a. \u062f\u0631 \u067e\u0627\u06cc\u0627\u0646 \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062a\u060c \u0628\u0627\u06cc\u062f \u0628\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0627\u062c\u0632\u0627\u06cc \u06a9\u0648\u062f\u06a9 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u0686\u0631\u0627 \u062f\u0631 \u062a\u0648\u0633\u0639\u0647 React \u062a\u0645\u0631\u06cc\u0646 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a. Props \u062f\u0631 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":9043,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1772,620],"tags":[1827,1828,1100,1843,2817,2819,2818,1964,2341,1816,1841,1965,1807,2750,2322,2250],"class_list":["post-11033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-programming","tag-react","tag-1828","tag-javascript","tag-nodejs-hosting","tag-props","tag-reactjs","tag-this-props-children","tag----frontend","tag-2341","tag-1816","tag-1841","tag-1965","tag-1807","tag-2750","tag-2322","tag--nodejs"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/11033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=11033"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/11033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/9043"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=11033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=11033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=11033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}