<?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: mercy.io</title>
    <description>The latest articles on DEV Community by mercy.io (@mercy_oyelude).</description>
    <link>https://dev.to/mercy_oyelude</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%2F910522%2Fafd46adc-4ac7-46a6-a0a8-ede0ba2dc51f.jpg</url>
      <title>DEV Community: mercy.io</title>
      <link>https://dev.to/mercy_oyelude</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mercy_oyelude"/>
    <language>en</language>
    <item>
      <title>Getting Started with React</title>
      <dc:creator>mercy.io</dc:creator>
      <pubDate>Sat, 17 Sep 2022 09:14:55 +0000</pubDate>
      <link>https://dev.to/mercy_oyelude/getting-started-with-react-377i</link>
      <guid>https://dev.to/mercy_oyelude/getting-started-with-react-377i</guid>
      <description>&lt;p&gt;Hello, getting started with learning ReactJS has helped me to see the power of independent, reusable components in coding. This straightforward yet simple article will definitely excite you in getting started also!&lt;/p&gt;

&lt;p&gt;ReactJS is a toolkit for building user interface which was first deployed by Facebook in 2011. It helps developers to build complex user interfaces using components.&lt;/p&gt;

&lt;p&gt;Technically, react is &lt;strong&gt;a user interface library&lt;/strong&gt;; it  serves the purpose of organizing HTML elements into &lt;strong&gt;components&lt;/strong&gt; (It is imperative to add here that you should have a prior knowledge of HTML in order to work well with reactJS), even though it's a lot more like a front-end framework.&lt;/p&gt;

&lt;p&gt;What make react unique and powerful are the components. React allows you to build a complex user interface with simple components. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Components are the pieces of a user interface.&lt;/strong&gt; For example, take a look at this interface:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p8FkWmr2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hs4hmgicujgss3bb5fqb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p8FkWmr2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hs4hmgicujgss3bb5fqb.jpg" alt="Image description" width="800" height="489"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It can be broken into Navs (search &amp;amp; play) and Album lists. Each of these sections will be placed in different individual component which ultimately makes up a react app.&lt;/p&gt;

&lt;p&gt;The search nav reflects:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Y5VScEnr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o38mmv5keil0ph0xe10p.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y5VScEnr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o38mmv5keil0ph0xe10p.PNG" alt="Image description" width="590" height="77"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The play nav reflects:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tM8-Kx2S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgvr39wvlue7u9msa2hg.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tM8-Kx2S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgvr39wvlue7u9msa2hg.PNG" alt="Image description" width="807" height="49"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And the album lists reflect:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--v4VbMq3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hpknc7qv9slam3jkotgd.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v4VbMq3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hpknc7qv9slam3jkotgd.PNG" alt="Image description" width="538" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For implementation&lt;br&gt;
A react component is implemented as a &lt;strong&gt;JavaScript class&lt;/strong&gt; which has &lt;strong&gt;state&lt;/strong&gt; and &lt;strong&gt;render.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class song { 
            state = {};
            render() {

            }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The state will hold the data we want to display when the component is rendered. The render is for describing what the user interface looks like, the output of the render is a react element.&lt;/p&gt;

&lt;p&gt;In summary, react is a powerful in making building complex user interfaces a lot easier for you, that's why it has definitely grown popular and that's why you should learn it as well!&lt;/p&gt;

&lt;p&gt;See you soon as we further dive into react.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>node</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
