<?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: Niidarku</title>
    <description>The latest articles on DEV Community by Niidarku (@niidarku).</description>
    <link>https://dev.to/niidarku</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%2F349390%2Fe68d6bfa-7be7-489d-84f0-4f1ad40c846f.jpeg</url>
      <title>DEV Community: Niidarku</title>
      <link>https://dev.to/niidarku</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/niidarku"/>
    <language>en</language>
    <item>
      <title>An Experience I had using react hooks (useEffect, useState). Not the best practice but why did it work🤔🤔</title>
      <dc:creator>Niidarku</dc:creator>
      <pubDate>Thu, 06 May 2021 07:54:36 +0000</pubDate>
      <link>https://dev.to/niidarku/an-experience-i-had-using-react-hooks-useeffect-usestate-not-the-best-practice-but-why-did-it-work-1269</link>
      <guid>https://dev.to/niidarku/an-experience-i-had-using-react-hooks-useeffect-usestate-not-the-best-practice-but-why-did-it-work-1269</guid>
      <description>&lt;p&gt;So I was trying to perform an update on a component being mounted by fetching data from an api into a react app, I prefer functional components with hooks to class components. Upon trying to use the useEffect hook I mistakenly used useState in the same form I would have use the useEffect hook and to my surprise the request went through and the component was correctly updated  🤔. &lt;/p&gt;

&lt;h1&gt;
  
  
  react #hooks
&lt;/h1&gt;

</description>
    </item>
  </channel>
</rss>
