<?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: Ali AbdElbagi</title>
    <description>The latest articles on DEV Community by Ali AbdElbagi (@ali007depug).</description>
    <link>https://dev.to/ali007depug</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%2F2838560%2F2c18e462-9d69-4d30-abea-a4fe6c44753c.png</url>
      <title>DEV Community: Ali AbdElbagi</title>
      <link>https://dev.to/ali007depug</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ali007depug"/>
    <language>en</language>
    <item>
      <title>Callback props in React</title>
      <dc:creator>Ali AbdElbagi</dc:creator>
      <pubDate>Wed, 26 Mar 2025 20:24:06 +0000</pubDate>
      <link>https://dev.to/ali007depug/callback-props-in-react-37m0</link>
      <guid>https://dev.to/ali007depug/callback-props-in-react-37m0</guid>
      <description>&lt;p&gt;What are Callback Props?&lt;/p&gt;

&lt;p&gt;Callback props are just regular props, but instead of passing data, they pass functions that handle specific events.&lt;/p&gt;

&lt;p&gt;What’s their exact purpose?&lt;/p&gt;

&lt;p&gt;Let’s say you have a component called A, which has a state that holds some data. Inside A, you also have another component, B, which is, for example, a Button.&lt;/p&gt;

&lt;p&gt;Now, if you want to execute a specific function when clicking the button in B, and that function should modify the state inside A, you can use callback props.&lt;/p&gt;

&lt;p&gt;This is essentially a way for components to communicate with each other.&lt;/p&gt;

&lt;p&gt;Explanation of the Example&lt;/p&gt;

&lt;p&gt;Looking at the example in the image, the idea is:&lt;/p&gt;

&lt;p&gt;When the user clicks the Button, it triggers an action that is passed as a prop (in this case, OnClickToChangeName).&lt;/p&gt;

&lt;p&gt;When rendering the Button inside the parent component (A), you pass a function (ChangeNameValue) to the OnClickToChangeName prop.&lt;/p&gt;

&lt;p&gt;This function then modifies the state of A from within B when the button is clicked.&lt;/p&gt;

&lt;p&gt;This demonstrates the benefit of callback props: allowing a child component to trigger a state update in its parent component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Favr1oi9fwn6f1pjfo10h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Favr1oi9fwn6f1pjfo10h.png" alt="code snap" width="800" height="686"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I d love to hear any additional insights or corrections on this topic! This is really my baby steps in React, and I found this concept a bit tricky to understand at first.&lt;/p&gt;

</description>
      <category>react</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Why Should I Learn the React Library?</title>
      <dc:creator>Ali AbdElbagi</dc:creator>
      <pubDate>Wed, 19 Mar 2025 20:14:49 +0000</pubDate>
      <link>https://dev.to/ali007depug/why-should-i-learn-the-react-library-4lhk</link>
      <guid>https://dev.to/ali007depug/why-should-i-learn-the-react-library-4lhk</guid>
      <description>&lt;p&gt;When learning something new, you need to &lt;strong&gt;research&lt;/strong&gt; it first to get a &lt;strong&gt;general understanding&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
If you skip this step, you'll likely feel &lt;strong&gt;lost and confused&lt;/strong&gt;.  &lt;/p&gt;

&lt;p&gt;This is actually the &lt;strong&gt;first step&lt;/strong&gt; that author &lt;strong&gt;John Z. Sonmez&lt;/strong&gt; mentions in his book&lt;br&gt;&lt;br&gt;
📖 &lt;em&gt;"Soft Skills: The Software Developer’s Life Manual"&lt;/em&gt;, and he calls it &lt;strong&gt;"Get The Big Picture."&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;So, when I decided to learn &lt;strong&gt;React&lt;/strong&gt;, I didn’t really ask myself &lt;em&gt;why&lt;/em&gt; I should learn it.&lt;br&gt;&lt;br&gt;
I just followed the &lt;strong&gt;Frontend Learning Path&lt;/strong&gt; and saw React listed there.  &lt;/p&gt;

&lt;p&gt;But why should &lt;em&gt;you&lt;/em&gt; learn React? 🤔  &lt;/p&gt;

&lt;p&gt;Here’s what makes &lt;strong&gt;React better&lt;/strong&gt; than &lt;strong&gt;Vanilla JavaScript&lt;/strong&gt;:  &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1️⃣ Reusability of Components = Cleaner &amp;amp; More Organized Code&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;With React, you can &lt;strong&gt;break the UI&lt;/strong&gt; into &lt;strong&gt;components&lt;/strong&gt; like buttons, cards, avatars, etc.
&lt;/li&gt;
&lt;li&gt;You &lt;strong&gt;write the code once&lt;/strong&gt; and reuse it &lt;strong&gt;anywhere&lt;/strong&gt;—so you don’t repeat yourself!
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2️⃣ Faster UI Updates with Virtual DOM&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;React &lt;strong&gt;only updates the changed elements&lt;/strong&gt;, not the entire &lt;strong&gt;DOM&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;This makes UI updates &lt;strong&gt;much faster&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;In Vanilla JS, &lt;strong&gt;too much DOM manipulation&lt;/strong&gt; slows down performance.
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3️⃣ Easier Data Handling with Hooks&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;React makes &lt;strong&gt;state management&lt;/strong&gt; easier with &lt;strong&gt;useState Hook&lt;/strong&gt;,
while in Vanilla JS, you have to manually handle state updates.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Still not convinced? Here’s why React is worth learning:&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;✅ &lt;strong&gt;1. React is in high demand&lt;/strong&gt; in the job market.&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;2. Big companies&lt;/strong&gt; use React—especially &lt;strong&gt;Meta (Facebook, WhatsApp Web, Instagram)&lt;/strong&gt;, which originally developed it.&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;3. Learning React opens the door to mobile app development&lt;/strong&gt; with &lt;strong&gt;React Native&lt;/strong&gt; (which I plan to learn next! 😉).&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;4. React is popular and has a strong ecosystem&lt;/strong&gt; of tools and libraries.  &lt;/p&gt;

&lt;p&gt;So, do you think these are &lt;strong&gt;convincing reasons&lt;/strong&gt; to learn React? 🤔💡  &lt;/p&gt;

&lt;h1&gt;
  
  
  React #WebDevelopment #Frontend #JavaScript 🚀
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Learning React Js</title>
      <dc:creator>Ali AbdElbagi</dc:creator>
      <pubDate>Sun, 16 Feb 2025 14:13:57 +0000</pubDate>
      <link>https://dev.to/ali007depug/learning-react-js-1p94</link>
      <guid>https://dev.to/ali007depug/learning-react-js-1p94</guid>
      <description>&lt;p&gt;I am going to share my React learning journey with you.&lt;/p&gt;

&lt;p&gt;i need some advice from people who went in this path before me&lt;/p&gt;

&lt;p&gt;i have good knowledge in HTML,CSS,JS,SASS,TAILWIND&lt;/p&gt;

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