<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Frontend on dev notes</title>
    <link>https://juhanakristianblog.netlify.app/tags/frontend/</link>
    <description>Recent content in Frontend on dev notes</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 26 Sep 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://juhanakristianblog.netlify.app/tags/frontend/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What is React Strict Mode?</title>
      <link>https://juhanakristianblog.netlify.app/posts/what-is-react-strict-mode/</link>
      <pubDate>Sat, 26 Sep 2020 00:00:00 +0000</pubDate>
      <guid>https://juhanakristianblog.netlify.app/posts/what-is-react-strict-mode/</guid>
      <description>&lt;p&gt;React Strict Mode is a tool, which comes with React, for detecting possible issues and problems in your application. Currently (Sept. 2020) Strict Mode detects if you have &lt;a href=&#34;https://reactjs.org/docs/strict-mode.html#identifying-unsafe-lifecycles&#34;&gt;unsafe lifecycle methods&lt;/a&gt;, &lt;a href=&#34;https://reactjs.org/docs/strict-mode.html#warning-about-legacy-string-ref-api-usage&#34;&gt;usage of legacy string ref API&lt;/a&gt;, &lt;a href=&#34;https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage&#34;&gt;usage of findDOMNode&lt;/a&gt;, &lt;a href=&#34;https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects&#34;&gt;detecting unexpected side effects&lt;/a&gt; or &lt;a href=&#34;https://reactjs.org/docs/strict-mode.html#detecting-legacy-context-api&#34;&gt;detecting usage of legacy context API&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So basically, using Strict Mode will help you detect if your app or libraries are using React APIs which are deprecated, unsafe in async code or have problems which might cause bugs. &lt;strong&gt;Strict Mode warnings are only displayed in development&lt;/strong&gt;, so you don&amp;rsquo;t have to worry about them showing up in production. In the future, Strict Mode will likely add other warnings so even if you don&amp;rsquo;t have any now, it&amp;rsquo;s a good idea to keep using it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Making API calls in React useEffect</title>
      <link>https://juhanakristianblog.netlify.app/posts/making-api-calls-with-react-useeffect/</link>
      <pubDate>Sat, 16 May 2020 09:33:01 +0000</pubDate>
      <guid>https://juhanakristianblog.netlify.app/posts/making-api-calls-with-react-useeffect/</guid>
      <description>&lt;p&gt;&lt;code&gt;useEffect&lt;/code&gt; is a &lt;a href=&#34;https://reactjs.org/docs/hooks-effect.html&#34;&gt;hook&lt;/a&gt; added in React 16.8. It allows you to perform &lt;a href=&#34;https://en.wikipedia.org/wiki/Side_effect_(computer_science)&#34;&gt;side effects&lt;/a&gt; in function components. This means you can update things outside of React based on your &lt;code&gt;props&lt;/code&gt;and &lt;code&gt;state&lt;/code&gt;. Fetching data when the component state changes, changing the page &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; or connecting to a WebSocket server are all examples of side effects that can be done with &lt;code&gt;useEffect&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As an example, we are going to build a component which fetches data from &lt;a href=&#34;https://alexwohlbruck.github.io/cat-facts/&#34;&gt;Cat Facts API&lt;/a&gt; and displays the received facts as a list. Finally we&amp;rsquo;ll add buttons to select the animal we want facts about.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
