<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ahmed Walid on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Walid on Medium]]></description>
        <link>https://medium.com/@aw8145502?source=rss-989290ba0e5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*C5RYAoXjmGLywnLQ</url>
            <title>Stories by Ahmed Walid on Medium</title>
            <link>https://medium.com/@aw8145502?source=rss-989290ba0e5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 05:35:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aw8145502/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is JSX]]></title>
            <link>https://medium.com/@aw8145502/what-is-jsx-c8c046aa6729?source=rss-989290ba0e5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8c046aa6729</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[frontend-engineering]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Ahmed Walid]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 13:00:04 GMT</pubDate>
            <atom:updated>2024-03-16T14:00:34.596Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UaXo_7CXCTMPolBiGolMJQ.png" /></figure><h3>What is JSX ?</h3><p>JSX is a JavaScript Extension Syntax used in React to easily write HTML and JavaScript together</p><pre>const hello = &lt;h1&gt;Hello World&lt;/h1&gt;<br></pre><h3>What is the React.createElement Function</h3><p>Every JSX is converted to the React.createElement function call that the browser understands</p><p>The React.createElement has the following syntax:</p><pre>React.createElement(type, [props], [...children])<br></pre><ul><li>Type can be an Html Tag like h1, p, div, atc</li><li>Props are attributes you want to element have</li><li>Children contain other HTML tags or can be a component</li></ul><pre>{   <br> type: &#39;h2&#39;,   <br> props: {     <br>   children: &#39;Hello World&#39;   <br> }<br>}<br><br></pre><p>As Example:-</p><pre>&lt;h2 id=&quot;say-hello&quot;&gt;Hello World&lt;/h2&gt;<br></pre><p>So React, will convert this JSX to the below code:</p><pre>React.createElement(&quot;h2&quot;, { id=&quot;say-hello&quot;}, &quot;Hello World&quot;);<br><br></pre><p>If there are any attributes added to the HTML tag as in our case, they will be passed as the second parameter for the React.createElement call. The object representation will look like this:</p><pre>{ <br>  type: &#39;h2&#39;, <br>  props: { <br>   id: &#39;say-hello&#39;,<br>   children: &#39;Hello World&#39;<br>  } <br>}<br></pre><p>Thank you for Reading ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8c046aa6729" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>