<?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>Forem: Sai Chandu</title>
    <description>The latest articles on Forem by Sai Chandu (@chandu_dsc).</description>
    <link>https://forem.com/chandu_dsc</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%2F1275766%2F3c440775-1535-4209-963f-55ecf4a1944f.jpeg</url>
      <title>Forem: Sai Chandu</title>
      <link>https://forem.com/chandu_dsc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/chandu_dsc"/>
    <language>en</language>
    <item>
      <title>Scope of a Variable in JavaScript</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Tue, 05 Mar 2024 17:06:09 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/scope-of-a-variable-in-javascript-33kf</link>
      <guid>https://forem.com/chandu_dsc/scope-of-a-variable-in-javascript-33kf</guid>
      <description>&lt;p&gt;Welcome back to another interesting and an exciting concept in JavaScript is &lt;strong&gt;Scope&lt;/strong&gt; of a variable.&lt;/p&gt;

&lt;p&gt;The Scope of Variable is defined as the context of a program in which it can be accessed. They are three ways of defining the scope of a variable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0gdawwruq5kneu6zf6d.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0gdawwruq5kneu6zf6d.jpg" alt="Image description" width="650" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1.&lt;strong&gt;Global Scope&lt;/strong&gt;&lt;br&gt;
2.&lt;strong&gt;Local Scope&lt;/strong&gt;&lt;br&gt;
3.&lt;strong&gt;Functional Scope&lt;/strong&gt;&lt;br&gt;
4.&lt;strong&gt;Block Scope&lt;/strong&gt;&lt;br&gt;
Now, we can see how these types of scopes were used differently in js.&lt;/p&gt;

&lt;p&gt;1.&lt;strong&gt;Global Scope&lt;/strong&gt;: Variables declared Globally(means outside function) have Global scope they can be accessed from anywehre in a program. Variables declared with &lt;strong&gt;var&lt;/strong&gt; keyword can have global scope.&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Local Scope&lt;/strong&gt;: Variables declared inside a function becomes local to the function. We can access the values of those variables within that function only.&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;Function Scope&lt;/strong&gt;: JavaScript has a function scope and each function can have their own scope. Variables declared with in the function are not allowed to access outside the function.&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Block Scope&lt;/strong&gt;: Earlier JavaScript has only Global Scope and Function Scope, but in ES6 2015 they introduce &lt;strong&gt;let&lt;/strong&gt; and &lt;strong&gt;const&lt;/strong&gt; with them we can have block scope. The variables declared with &lt;strong&gt;let&lt;/strong&gt; and &lt;strong&gt;const&lt;/strong&gt; are been accessed for that particular block.&lt;/p&gt;

&lt;p&gt;This is all about the Scope of a variable in JavaScript.&lt;/p&gt;

&lt;p&gt;Hope you guys learn about the scope. See you in next lecture🤠&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JavaScript: Variables</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Fri, 01 Mar 2024 17:17:42 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/javascript-variables-3hpb</link>
      <guid>https://forem.com/chandu_dsc/javascript-variables-3hpb</guid>
      <description>&lt;p&gt;Welcome back to JavaScript programming, today we are going to discuss about the variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a Varible?&lt;/strong&gt;&lt;br&gt;
Variables are used to store the values in it.We can use those variables in every where we want and can change the value of that variable.&lt;br&gt;
In JavaScript we can define variables in 3 types:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using **Var **keyword&lt;/li&gt;
&lt;li&gt;Using &lt;strong&gt;let&lt;/strong&gt;keyword&lt;/li&gt;
&lt;li&gt;Using &lt;strong&gt;const&lt;/strong&gt;keyword
Now, we took deeper into these types with some examples:
1.&lt;strong&gt;Var&lt;/strong&gt;: It is used to declare variables in javascript that are function-scoped. The &lt;strong&gt;var&lt;/strong&gt; statement is also used to declare global-scope variables.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note: Before ES6 introduction, all the keywords in JavaScript were declared with the &lt;strong&gt;var&lt;/strong&gt; keyword.&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;let&lt;/strong&gt;: JavaScript &lt;strong&gt;let&lt;/strong&gt; keyword is used to declare variables that are block-scoped. Variables defined with the let keyword cannot be redeclared in the same scope and must be declared before use.&lt;/p&gt;

&lt;p&gt;Note:&lt;strong&gt;let&lt;/strong&gt; keyword was added in the ES6 or ES2015 version of javascript.&lt;/p&gt;

&lt;p&gt;3.&lt;strong&gt;const&lt;/strong&gt;:It was also introduced in ES62015(ES6) the const keyword to define a new variable. Variables declared using const keyword cannot be re-assigned.&lt;/p&gt;

&lt;p&gt;Note:Variables specified using &lt;strong&gt;const&lt;/strong&gt; cannot be redeclared and have block-scope.&lt;/p&gt;

&lt;p&gt;We can discuss more about the scoping in the next lecture.&lt;/p&gt;

&lt;p&gt;See you soon...🤠🤠🤠  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>An Intro to JavaScript.</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Wed, 28 Feb 2024 17:30:17 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/an-intro-to-javascript-4e30</link>
      <guid>https://forem.com/chandu_dsc/an-intro-to-javascript-4e30</guid>
      <description>&lt;p&gt;Hi everyone,Today we will discuss about the World's popular Programming Language to develop Web Applications is &lt;strong&gt;JavaScript&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We have HTML,CSS to design Web Applications, but to make an interaction javascript will take care of that.&lt;/p&gt;

&lt;p&gt;It is a scripting language that enables to create dynamically updating content, control multimedia, animate images, and everything else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How To include Javascript in HTML?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7eanar8oqrhcaj3s0qq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7eanar8oqrhcaj3s0qq.png" alt="Image description" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We use &lt;strong&gt;script&lt;/strong&gt; tag to include javascript file into the html.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features of JavaScript&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Client Side&lt;/strong&gt;: It supplies objects to control a browser with DOM(Document Object Model). To make this easy there are some libraries like ReactJS,Angular JS, Vue JS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Server Side&lt;/strong&gt;: It supplies objects relevant to running JavaScript on a server. To make it possible it has framework called Node JS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamic Type&lt;/strong&gt;: It means types of the variables are defined based on the stored value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Platform Independent&lt;/strong&gt;: It means that you can simply write the script once and run it anywhere and anytime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prototype-based Language&lt;/strong&gt;: It uses prototypes instead of classes or inheritance means we can define an object prototype, and then more objects can be created using object prototype.&lt;/p&gt;

&lt;p&gt;This is a brief Introduction to JavaScript, we can learn more in coming days.&lt;br&gt;
See you soon😊😊😊  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>React: Hooks</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Tue, 13 Feb 2024 10:25:35 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/react-hooks-26m5</link>
      <guid>https://forem.com/chandu_dsc/react-hooks-26m5</guid>
      <description>&lt;p&gt;Welcome all for another topic in React is &lt;strong&gt;Hooks&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are Hooks?&lt;/strong&gt;&lt;br&gt;
React Hooks are like JavaScript functions that we can use to isolate the reusable part from a functional component.&lt;/p&gt;

&lt;p&gt;Hooks can be stateful and can manage side-effects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fotx9158bw77yddsf9gt1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fotx9158bw77yddsf9gt1.jpg" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
Hooks are like different coffee cups that are used for different purposes. Just like different hooks use for differnt purpose in React.&lt;/p&gt;

&lt;p&gt;The Different types of Hooks are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;UseState()&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UseEffect()&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UseReducer()&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UseContext()&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;UseRef()&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, we will see how these hooks works in different cases.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;UseState()&lt;/strong&gt;: It allows to add state to functional components.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk5xng7l5ikqykn4zl3ht.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk5xng7l5ikqykn4zl3ht.png" alt="Image description" width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;UseEffect()&lt;/strong&gt;: It allows to perform side effects in your components. Side Effects like: fetching data,directly updating the DOM, and timers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj8oylf7fgyinfx8ezl8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj8oylf7fgyinfx8ezl8h.png" alt="Image description" width="800" height="867"&gt;&lt;/a&gt;&lt;br&gt;
3.&lt;strong&gt;UseReducer()&lt;/strong&gt;:It is similar to useState Hook.It is mainly used to handle complex state updates. It means if there are two state updates of similar type with slight change, we can combine them to single state known as &lt;strong&gt;useReducer()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8uz9udnfcq8oawrm1noe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8uz9udnfcq8oawrm1noe.png" alt="Image description" width="800" height="506"&gt;&lt;/a&gt;&lt;br&gt;
4.&lt;strong&gt;UseContext&lt;/strong&gt;: The main reason for using this &lt;strong&gt;UseContext&lt;/strong&gt; is to centralize the state. It avoids props drilling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj89mjw27t1sf9udpms2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj89mjw27t1sf9udpms2g.png" alt="Image description" width="800" height="426"&gt;&lt;/a&gt;&lt;br&gt;
5.&lt;strong&gt;UseRef&lt;/strong&gt;: It allows you to access the elements and its inner values mainly for inputs and manipulate them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh1d6iwy80el31l5r2i70.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh1d6iwy80el31l5r2i70.png" alt="Image description" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope you guys enjoy learning about &lt;strong&gt;Hooks&lt;/strong&gt;. &lt;br&gt;
Meet u with more topics🤠&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React:(Props)</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Sat, 10 Feb 2024 13:35:38 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/reactprops-1bi7</link>
      <guid>https://forem.com/chandu_dsc/reactprops-1bi7</guid>
      <description>&lt;p&gt;The most important topic today is &lt;strong&gt;Props&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are Props?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Props in react used to transfer data from one component to another component.&lt;br&gt;
Like, we transfer the messages from one place to another place with the help of messenger.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuaoqu0yomt4ajudra432.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuaoqu0yomt4ajudra432.gif" alt="Image description" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It helps the components to access the customized data, values and the information that input holds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Use Props?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj5vri9lvwfx56rciim79.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj5vri9lvwfx56rciim79.gif" alt="Image description" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In React there is a way of data transfer i.e. from Parent Component to Child Component and viceversa. The data passed to child can't be modified.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Send Prop into Component&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffl455russydv87hs8hnd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffl455russydv87hs8hnd.png" alt="Image description" width="452" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can see how the props are used in Child &lt;strong&gt;iComponent&lt;/strong&gt; that was transferred from Parent &lt;strong&gt;TestComponent&lt;/strong&gt;. The output displays the props value in Child Component.&lt;/p&gt;

&lt;p&gt;Meet you seen with more concepts in React🤠🤠🤠&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React: UseState()</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Fri, 09 Feb 2024 17:07:52 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/react-usestate-p16</link>
      <guid>https://forem.com/chandu_dsc/react-usestate-p16</guid>
      <description>&lt;p&gt;Let's now disucss about the &lt;strong&gt;UseState()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;UseState() is a Hook which store the intial value and update the value if any change occurs in state.&lt;/p&gt;

&lt;p&gt;Real life example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5iff8c0qffk81vbm0kb.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff5iff8c0qffk81vbm0kb.gif" alt="Image description" width="498" height="280"&gt;&lt;/a&gt;&lt;br&gt;
Let's imagine if you go to a restaurant &amp;amp; order noodles. Somehow you changed your mind to try italian. The waiter gave a chance to swap the noodles with pizza.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UseState()&lt;/strong&gt; is like a waiter. It provides a function to change the initial value assigned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feafsdpk3g35abtumxzbq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feafsdpk3g35abtumxzbq.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
The above figure depicts the usage of &lt;strong&gt;useState()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;On intial render the useState stores 0 as the value.&lt;/p&gt;

&lt;p&gt;When user click a button which triggers a function, Inside this function we can call setCount() to update the initial value.&lt;/p&gt;

&lt;p&gt;Meet u soon with more concepts in React🤠&lt;/p&gt;

</description>
    </item>
    <item>
      <title>React: Components</title>
      <dc:creator>Sai Chandu</dc:creator>
      <pubDate>Thu, 08 Feb 2024 13:12:35 +0000</pubDate>
      <link>https://forem.com/chandu_dsc/react-components-25np</link>
      <guid>https://forem.com/chandu_dsc/react-components-25np</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction to React js&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;React js is a JavaScript Library for building User Interfaces(UI). React is all about developing Single Page Applications. To describe React, it is all about Components. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is a Component?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjeg0iyrukdc0swvyrwf.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsjeg0iyrukdc0swvyrwf.gif" alt="Image description" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Components are like Cardboard boxes, In one box we can place books, another one we can place utensils. Smiliar to Cardboard box, a single component can be used for the entire application and a single component can be used for particular page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;App&lt;/strong&gt; Component is the main component for a React Application.&lt;/p&gt;

&lt;p&gt;Now let's try to understand Components in detail:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User Profile in Facebook&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flu6bs0m1hsxcrzu7ijau.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flu6bs0m1hsxcrzu7ijau.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some components from above example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Navbar Component&lt;/li&gt;
&lt;li&gt;Chat Component&lt;/li&gt;
&lt;li&gt;Address Component&lt;/li&gt;
&lt;li&gt;Cover Component&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Common Component&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;1.&lt;strong&gt;Navbar Component&lt;/strong&gt;: Common for every page in the application.&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Chat Component&lt;/strong&gt;: Common for both User Feed and Profile Page.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Page Specific Components&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;1.&lt;strong&gt;Address Component&lt;/strong&gt;:Page Specific to the User Profile Page.&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Cover Component&lt;/strong&gt;: Used for User Profile Page.&lt;/p&gt;

&lt;p&gt;This is how the components are used in React.&lt;/p&gt;

&lt;p&gt;Meet u soon with more concepts in React🤠&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
