{"id":282303,"date":"2016-12-11T13:15:03","date_gmt":"2016-12-11T10:15:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282303"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282303","title":{"rendered":"React.js \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u0427\u0430\u0441\u0442\u044c \u0432\u043e\u0441\u044c\u043c\u0430\u044f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1b1\/541\/fc1\/1b1541fc19a5493e9f872451ade41988.png\"\/><br \/>  \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 React.js \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435.<\/p>\n<h3>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/h3>\n<p>  1 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315466\/\">\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <\/a> <br \/>  2 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315630\/\">\u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f \u2014 \u0412\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435 JSX<\/a><br \/>  3 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315716\/\">\u0427\u0430\u0441\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044f \u2014 \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/a><br \/>  4 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315922\/\">\u0427\u0430\u0441\u0442\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u2014 \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/a><br \/>  5 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316262\/\">\u0427\u0430\u0441\u0442\u044c \u043f\u044f\u0442\u0430\u044f \u2014 \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b<\/a><br \/>  6 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316600\/\">\u0427\u0430\u0441\u0442\u044c \u0448\u0435\u0441\u0442\u0430\u044f \u2014 \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a><br \/>  7 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316896\/\">\u0427\u0430\u0441\u0442\u044c \u0441\u0435\u0434\u044c\u043c\u0430\u044f \u2014 \u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433<\/a><br \/>  8 \u2014 \u0427\u0430\u0441\u0442\u044c \u0432\u043e\u0441\u044c\u043c\u0430\u044f \u2014 \u0421\u043f\u0438\u0441\u043a\u0438 \u0438 \u043a\u043b\u044e\u0447\u0438<br \/>  9 \u2014 \u0427\u0430\u0441\u0442\u044c \u0434\u0435\u0432\u044f\u0442\u0430\u044f (\u0441\u043a\u043e\u0440\u043e)<\/p>\n<h1>\u0421\u043f\u0438\u0441\u043a\u0438 \u0438 \u043a\u043b\u044e\u0447\u0438<\/h1>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0432 <i>JavaScript<\/i>.<br \/>  \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>\u00abmap()\u00bb<\/i>, \u0447\u0442\u043e\u0431\u044b \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 <i>\u00abnumbers\u00bb<\/i> \u0438 \u0443\u0434\u0432\u043e\u0438\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u044b\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <i>\u00abmap()\u00bb<\/i>, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0443\u0434\u0432\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"javascript\">const numbers = [1, 2, 3, 4, 5]; const doubled = numbers.map((number) =&gt; number * 2); console.log(doubled); <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0437\u0430\u043d\u043e\u0441\u0438\u0442 [2, 4, 6, 8, 10] \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0412 React \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432 \u0441\u043f\u0438\u0441\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<h2>\u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h2>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445 \u0432 JSX, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 {}.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435, \u043c\u044b \u043f\u0435\u0440\u0435\u0431\u0435\u0440\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 <i>\u00abnumbers\u00bb<\/i>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>JavaScript \u00abmap()\u00bb<\/i>.\u041c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <i>&quot;&quot;\u00a0\u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u044b. \u041d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a, \u043c\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a <i>\u00ablistItems\u00bb<\/i>:  <\/p>\n<pre><code class=\"javascript\">const numbers = [1, 2, 3, 4, 5]; const listItems = numbers.map((number) =&gt;   &lt;li&gt;{number}&lt;\/li&gt; ); <\/code><\/pre>\n<p>  \u041c\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0435\u0441\u044c \u043c\u0430\u0441\u0441\u0438\u0432 <code>&quot;listItems&quot;<\/code> \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <\/p>\n<pre><code class=\"javascript\">&lt;ul&gt;<\/code><\/pre>\n<p> \u0438 \u0432\u044b\u043d\u043e\u0441\u0438\u043c \u0435\u0433\u043e \u0432 DOM:  <\/p>\n<pre><code class=\"javascript\">ReactDOM.render(   &lt;ul&gt;{listItems}&lt;\/ul&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/codepen.io\/gaearon\/pen\/GjPyQr?editors=0011\">CodePen<\/a>.<br \/>  <i>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0447\u0438\u0441\u0435\u043b \u043c\u0435\u0436\u0434\u0443 1 \u0438 5.<br \/>  <\/i><\/p>\n<h3>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h3>\n<p>  \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 <i>\u00abnumbers\u00bb<\/i> \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.  <\/p>\n<pre><code class=\"javascript\">function NumberList(props) {   const numbers = props.numbers;   const listItems = numbers.map((number) =&gt;     &lt;li&gt;{number}&lt;\/li&gt;   );   return (     &lt;ul&gt;{listItems}&lt;\/ul&gt;   ); }  const numbers = [1, 2, 3, 4, 5]; ReactDOM.render(   &lt;NumberList numbers={numbers} \/&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u0441\u043f\u043b\u044b\u0432\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447. <i>\u00abKey\u00bb<\/i> \u2014 \u044d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u0442\u0430\u043a \u0432\u0430\u0436\u0435\u043d.<br \/>  \u0417\u0430\u0434\u0430\u0434\u0438\u043c <i>\u00abkey\u00bb<\/i> \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 <i>\u00abnumbers.map ()\u00bb<\/i>.  <\/p>\n<pre><code class=\"javascript\">function NumberList(props) {   const numbers = props.numbers;   const listItems = numbers.map((number) =&gt;     &lt;li key={number.toString()}&gt;       {number}     &lt;\/li&gt;   );   return (     &lt;ul&gt;{listItems}&lt;\/ul&gt;   ); }  const numbers = [1, 2, 3, 4, 5]; ReactDOM.render(   &lt;NumberList numbers={numbers} \/&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/codepen.io\/gaearon\/pen\/jrXYRR?editors=0011\">CodePen<\/a>.<\/p>\n<h4>\u041a\u043b\u044e\u0447\u0438 (Keys)<\/h4>\n<p>  \u041a\u043b\u044e\u0447\u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 <i>React<\/i> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u044b. \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u044b \u043a\u043b\u044e\u0447\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c:  <\/p>\n<pre><code class=\"javascript\">const numbers = [1, 2, 3, 4, 5]; const listItems = numbers.map((number) =&gt;   &lt;li key={number.toString()}&gt;     {number}   &lt;\/li&gt; ); <\/code><\/pre>\n<p>  \u041b\u0443\u0447\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0440\u0435\u0434\u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b (ID) \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"javascript\">const todoItems = todos.map((todo) =&gt;   &lt;li key={todo.id}&gt;     {todo.text}   &lt;\/li&gt; ); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 (ID) \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0432 \u043a\u0440\u0430\u0439\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u044e\u0447\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 (index) \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:  <\/p>\n<pre><code class=\"javascript\">const todoItems = todos.map((todo, index) =&gt;   \/\/ Only do this if items have no stable IDs   &lt;li key={index}&gt;     {todo.text}   &lt;\/li&gt; ); <\/code><\/pre>\n<p>  \u041c\u044b \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0435\u0439 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e.<\/p>\n<h4>\u0418\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u044e\u0447\u0435\u0439<\/h4>\n<p>  \u041a\u043b\u044e\u0447\u0438 \u0438\u043c\u0435\u044e\u0442 \u0441\u043c\u044b\u0441\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <i>\u00abListItem\u00bb<\/i>, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <br \/>  <i>&quot;&lt;ListItem \/&gt;&quot;<\/i> \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0430 \u043d\u0435 \u0434\u043b\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <\/p>\n<pre><code class=\"javascript\">&lt;li&gt;<\/code><\/pre>\n<p> \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <i>\u00abListItem\u00bb<\/i>.<\/p>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0440: \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430<\/b>  <\/p>\n<pre><code class=\"javascript\">function ListItem(props) {   const value = props.value;   return (     \/\/ Wrong! There is no need to specify the key here:     &lt;li key={value.toString()}&gt;       {value}     &lt;\/li&gt;   ); }  function NumberList(props) {   const numbers = props.numbers;   const listItems = numbers.map((number) =&gt;     \/\/ Wrong! The key should have been specified here:     &lt;ListItem value={number} \/&gt;   );   return (     &lt;ul&gt;       {listItems}     &lt;\/ul&gt;   ); }  const numbers = [1, 2, 3, 4, 5]; ReactDOM.render(   &lt;NumberList numbers={numbers} \/&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0440: \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430<\/b>  <\/p>\n<pre><code class=\"javascript\">function ListItem(props) {   \/\/ Correct! There is no need to specify the key here:   return &lt;li&gt;{props.value}&lt;\/li&gt;; }  function NumberList(props) {   const numbers = props.numbers;   const listItems = numbers.map((number) =&gt;     \/\/ Correct! Key should be specified inside the array.     &lt;ListItem key={number.toString()}               value={number} \/&gt;   );   return (     &lt;ul&gt;       {listItems}     &lt;\/ul&gt;   ); }  const numbers = [1, 2, 3, 4, 5]; ReactDOM.render(   &lt;NumberList numbers={numbers} \/&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/codepen.io\/rthor\/pen\/QKzJKG?editors=0010\">CodePen<\/a>.<br \/>  <i>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <i>\u00abmap()\u00bb<\/i>\u00a0\u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043a\u043b\u044e\u0447\u0438.<\/i><\/p>\n<h4>\u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445<\/h4>\n<p>  \u041a\u043b\u044e\u0447\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0438 \u0441\u0432\u043e\u0438\u0445 \u0431\u0440\u0430\u0442\u044c\u0435\u0432. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043e\u043d\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c. \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u043a\u043b\u044e\u0447\u0438, \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432:  <\/p>\n<pre><code class=\"javascript\">function Blog(props) {   const sidebar = (     &lt;ul&gt;       {props.posts.map((post) =&gt;         &lt;li key={post.id}&gt;           {post.title}         &lt;\/li&gt;       )}     &lt;\/ul&gt;   );   const content = props.posts.map((post) =&gt;     &lt;div key={post.id}&gt;       &lt;h3&gt;{post.title}&lt;\/h3&gt;       &lt;p&gt;{post.content}&lt;\/p&gt;     &lt;\/div&gt;   );   return (     &lt;div&gt;       {sidebar}       &lt;hr \/&gt;       {content}     &lt;\/div&gt;   ); }  const posts = [   {id: 1, title: 'Hello World', content: 'Welcome to learning React!'},   {id: 2, title: 'Installation', content: 'You can install React from npm.'} ]; ReactDOM.render(   &lt;Blog posts={posts} \/&gt;,   document.getElementById('root') ); <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/codepen.io\/gaearon\/pen\/NRZYGN?editors=0010\">CodePen<\/a>.<\/p>\n<p>  \u0414\u043b\u044f React \u043a\u043b\u044e\u0447\u0438 \u0441\u043b\u0443\u0436\u0430\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u0430\u0448\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u043f\u043e\u0440\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c:  <\/p>\n<pre><code class=\"javascript\">const content = posts.map((post) =&gt;   &lt;Post     key={post.id}     id={post.id}     title={post.title} \/&gt; ); <\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <i>\u00abPost\u00bb<\/i> \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <i>\u00abprops.id\u00bb<\/i>, \u043d\u043e \u043d\u0435 <i>\u00abprops.key\u00bb<\/i>.<\/p>\n<h4>\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435 &quot; map()&quot; \u0432 JSX<\/h4>\n<p>  \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u044b \u0437\u0430\u044f\u0432\u0438\u043b\u0438, \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <i>\u00ablistItems\u00bb<\/i> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f\u00a0 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0435\u0433\u043e \u0432 <i>JSX<\/i>:  <\/p>\n<pre><code class=\"javascript\">function NumberList(props) {   const numbers = props.numbers;   const listItems = numbers.map((number) =&gt;     &lt;ListItem key={number.toString()}               value={number} \/&gt;   );   return (     &lt;ul&gt;       {listItems}     &lt;\/ul&gt;   ); } <\/code><\/pre>\n<p>  JSX \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <i>\u00abmap()\u00bb<\/i>:  <\/p>\n<pre><code class=\"javascript\">function NumberList(props) {   const numbers = props.numbers;   return (     &lt;ul&gt;       {numbers.map((number) =&gt;         &lt;ListItem key={number.toString()}                   value={number} \/&gt;       )}     &lt;\/ul&gt;   ); } <\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/codepen.io\/gaearon\/pen\/BLvYrB?editors=0010\">CodePen<\/a>.<\/p>\n<p>  \u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u044d\u0442\u0438\u043c \u0437\u043b\u043e\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c. \u041a\u0430\u043a \u0438 \u0432 <i>JavaScript<\/i>, \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u2014 \u0440\u0435\u0448\u0430\u0442\u044c \u0432\u0430\u043c. \u0418\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 <i>\u00abmap()\u00bb<\/i> \u0442\u043e\u0436\u0435 \u0432\u043b\u043e\u0436\u0435\u043d, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0442\u043e\u0442 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442.<\/i><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:\/\/habrahabr.ru\/post\/317330\/\"> https:\/\/habrahabr.ru\/post\/317330\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1b1\/541\/fc1\/1b1541fc19a5493e9f872451ade41988.png\"\/><br \/>  \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 React.js \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435.<\/p>\n<h3>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/h3>\n<p>  1 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315466\/\">\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u2014 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <\/a> <br \/>  2 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315630\/\">\u0427\u0430\u0441\u0442\u044c \u0432\u0442\u043e\u0440\u0430\u044f \u2014 \u0412\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435 JSX<\/a><br \/>  3 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315716\/\">\u0427\u0430\u0441\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044f \u2014 \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/a><br \/>  4 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/315922\/\">\u0427\u0430\u0441\u0442\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u2014 \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/a><br \/>  5 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316262\/\">\u0427\u0430\u0441\u0442\u044c \u043f\u044f\u0442\u0430\u044f \u2014 \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b<\/a><br \/>  6 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316600\/\">\u0427\u0430\u0441\u0442\u044c \u0448\u0435\u0441\u0442\u0430\u044f \u2014 \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a><br \/>  7 \u2014 <a href=\"https:\/\/habrahabr.ru\/post\/316896\/\">\u0427\u0430\u0441\u0442\u044c \u0441\u0435\u0434\u044c\u043c\u0430\u044f \u2014 \u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433<\/a><br \/>  8 \u2014 \u0427\u0430\u0441\u0442\u044c \u0432\u043e\u0441\u044c\u043c\u0430\u044f \u2014 \u0421\u043f\u0438\u0441\u043a\u0438 \u0438 \u043a\u043b\u044e\u0447\u0438<br \/>  9 \u2014 \u0427\u0430\u0441\u0442\u044c \u0434\u0435\u0432\u044f\u0442\u0430\u044f (\u0441\u043a\u043e\u0440\u043e)<\/p>\n<h1>\u0421\u043f\u0438\u0441\u043a\u0438 \u0438 \u043a\u043b\u044e\u0447\u0438<\/h1>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0432 <i>JavaScript<\/i>.<br \/>  \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>\u00abmap()\u00bb<\/i>, \u0447\u0442\u043e\u0431\u044b \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 <i>\u00abnumbers\u00bb<\/i> \u0438 \u0443\u0434\u0432\u043e\u0438\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u044b\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <i>\u00abmap()\u00bb<\/i>, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0443\u0434\u0432\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-282303","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282303","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=282303"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282303\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}