<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: lucasfrutig0</title>
    <description>The latest articles on DEV Community by lucasfrutig0 (@lucasfrutig0).</description>
    <link>https://dev.to/lucasfrutig0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F136475%2Ff7df75b8-3207-4043-aa4c-99fbd73b5e1f.jpg</url>
      <title>DEV Community: lucasfrutig0</title>
      <link>https://dev.to/lucasfrutig0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucasfrutig0"/>
    <language>en</language>
    <item>
      <title>Handle Map in React</title>
      <dc:creator>lucasfrutig0</dc:creator>
      <pubDate>Tue, 12 Jan 2021 18:52:00 +0000</pubDate>
      <link>https://dev.to/lucasfrutig0/handle-map-in-react-2nkj</link>
      <guid>https://dev.to/lucasfrutig0/handle-map-in-react-2nkj</guid>
      <description>&lt;p&gt;Hi! I´m a beginner front end dev, and i have some work with react.&lt;br&gt;
But i have a doubt with manipulate an element in a map render components.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Change a msg variable in only one element in a map&lt;br&gt;
So, i have this variable in a title element:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wbiHFZRz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/n3053gwb7fm3ql9wknmx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wbiHFZRz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/n3053gwb7fm3ql9wknmx.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And when the button is pressed i call a function and try set the message in this way:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DVdjcWki--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/enm6481c8t93uhw5upis.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DVdjcWki--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/enm6481c8t93uhw5upis.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Obs:&lt;/strong&gt; I use useRef hook to get el reference in the dom&lt;/p&gt;

&lt;p&gt;So, anyone can help me with this?&lt;/p&gt;

</description>
      <category>help</category>
      <category>react</category>
    </item>
  </channel>
</rss>
