<?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: Sainath Mhetre</title>
    <description>The latest articles on DEV Community by Sainath Mhetre (@lordsainath).</description>
    <link>https://dev.to/lordsainath</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%2F3389661%2F441eafcd-e4b2-4959-823e-e73350c93e98.jpg</url>
      <title>DEV Community: Sainath Mhetre</title>
      <link>https://dev.to/lordsainath</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lordsainath"/>
    <language>en</language>
    <item>
      <title>🧩 Understanding React Components: A Beginner-Friendly Guide</title>
      <dc:creator>Sainath Mhetre</dc:creator>
      <pubDate>Sun, 27 Jul 2025 13:27:50 +0000</pubDate>
      <link>https://dev.to/lordsainath/understanding-react-components-a-beginner-friendly-guide-1ogh</link>
      <guid>https://dev.to/lordsainath/understanding-react-components-a-beginner-friendly-guide-1ogh</guid>
      <description>&lt;p&gt;React has taken the front-end development world by storm — and at the heart of React lies one core concept: components. Whether you’re building a simple UI or a complex web app, components are the building blocks of any React project.&lt;/p&gt;

&lt;p&gt;In this post, we’ll walk through:&lt;/p&gt;

&lt;p&gt;What React components are&lt;/p&gt;

&lt;p&gt;Functional vs Class components&lt;/p&gt;

&lt;p&gt;Props and state basics&lt;/p&gt;

&lt;p&gt;Composing components&lt;/p&gt;

&lt;p&gt;Best practices&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function HelloWorld() {
  return &amp;lt;h1&amp;gt;Hello, world!&amp;lt;/h1&amp;gt;;
}

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

&lt;/div&gt;



&lt;p&gt;🧠 Functional vs Class Components&lt;br&gt;
There are two types of components in React:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Functional Components (Modern &amp;amp; Preferred)
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function Welcome(props) {
  return &amp;lt;h1&amp;gt;Hello, {props.name}&amp;lt;/h1&amp;gt;;
}

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

&lt;/div&gt;



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