<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>React JS &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/tag/react-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.maxester.com/blog</link>
	<description>Tutorials, Examples and Implementation code for Developers Help</description>
	<lastBuildDate>Mon, 17 Feb 2025 09:17:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.22</generator>
	<item>
		<title>What is JSX in React Js?</title>
		<link>https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/</link>
		<comments>https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/#respond</comments>
		<pubDate>Tue, 12 Dec 2023 11:29:56 +0000</pubDate>
		<dc:creator><![CDATA[Mayank Jha]]></dc:creator>
				<category><![CDATA[React Js]]></category>
		<category><![CDATA[JSX]]></category>
		<category><![CDATA[React JS]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1147</guid>
		<description><![CDATA[<p>JSX stands for JavaScript XML. JSX helps us to write HTML code inside the JavaScript code. JSX was introduced with ES6. Any component that we will use in React JS will use JSX. Example :- You can or can&#8217;t use&#8230;</p>
<p><a href="https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/">What is JSX in React Js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>JSX stands for JavaScript XML. JSX helps us to write HTML code inside the JavaScript code. JSX was introduced with ES6.</p>



<p>Any component that we will use in React JS will use JSX.</p>



<p>Example :-</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/JSX.png" alt="" class="wp-image-1148" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/JSX.png 686w, https://www.maxester.com/blog/wp-content/uploads/2023/12/JSX-300x94.png 300w" sizes="(max-width: 686px) 100vw, 686px" /><figcaption>JSX Code</figcaption></figure>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/op-1.png" alt="" class="wp-image-1149"/><figcaption>Output</figcaption></figure></div>



<p>You can or can&#8217;t use JSX in your React Js applications, its just a matter of convenience.</p>



<p>JSX helps in writing Javascript inside the html code using curly braces {}. After compilation JSX expressions become regular javascript function calls. We can use JSX inside the if-else statements, inside loops and we can also assign JSX as a value to any variable.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/jsxx.png" alt="" class="wp-image-1217" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/jsxx.png 630w, https://www.maxester.com/blog/wp-content/uploads/2023/12/jsxx-300x44.png 300w" sizes="(max-width: 630px) 100vw, 630px" /><figcaption><br></figcaption></figure>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/conditional.png" alt="" class="wp-image-1218" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/conditional.png 476w, https://www.maxester.com/blog/wp-content/uploads/2023/12/conditional-300x202.png 300w" sizes="(max-width: 476px) 100vw, 476px" /></figure>



<p>Due to some reserved keywords of Javascript, which are used as HTML attributes, JSX uses camelCase notation for specifying the attributes of a HTML element. For example, class as className, for as htmlFor, etc.</p>



<p>The singleton tags or void tags need to be closed inside the JSX code. Otherwise it will throw an error.</p>



<p>JSX also prevents injection attacks, as the ReactDOM coverts any value which is inside the JSX to strings before rendering them. This helps in preventing the cross-site-scripting attacks.</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/">What is JSX in React Js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2023/12/12/what-is-jsx-in-react-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why we use Render in React?</title>
		<link>https://www.maxester.com/blog/2023/12/07/react-render-html/</link>
		<comments>https://www.maxester.com/blog/2023/12/07/react-render-html/#respond</comments>
		<pubDate>Thu, 07 Dec 2023 11:32:33 +0000</pubDate>
		<dc:creator><![CDATA[Mayank Jha]]></dc:creator>
				<category><![CDATA[React Js]]></category>
		<category><![CDATA[.render() function]]></category>
		<category><![CDATA[React .render() method]]></category>
		<category><![CDATA[React JS]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1141</guid>
		<description><![CDATA[<p>React JS is made up of JSX (JavaScript XML). All the codes are written using JSX. But our browser doesn&#8217;t understand JSX. Browsers can only parse HTML, CSS and Vanilla JavaScript. Therefore, it becomes necessary to find a medium, which&#8230;</p>
<p><a href="https://www.maxester.com/blog/2023/12/07/react-render-html/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/12/07/react-render-html/">Why we use Render in React?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>React JS is made up of JSX (<strong>JavaScript XML</strong>). All the codes are written using JSX. But our browser doesn&#8217;t understand JSX. Browsers can only parse HTML, CSS and Vanilla JavaScript. Therefore, it becomes necessary to find a medium, which can carry this conversion task.</p>



<h3>.createRoot()</h3>



<p>ReactDOM.createRoot() is used to create the root element, where all the HTML and CSS code will be rendered.</p>



<p>In a simple website, there will be only one root but it depends on the nature and complexity of the website.</p>



<h3>.render()</h3>



<p>.render() method is used on the root element to render the JSX code.</p>



<p>This is the place where all the code will be rendered.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/index.html_.png" alt="" class="wp-image-1142"/><figcaption>index.html<br></figcaption></figure>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/render.png" alt="" class="wp-image-1143" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/render.png 627w, https://www.maxester.com/blog/wp-content/uploads/2023/12/render-300x25.png 300w" sizes="(max-width: 627px) 100vw, 627px" /><figcaption>index.js<br></figcaption></figure>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/op.png" alt="" class="wp-image-1144"/><figcaption>output</figcaption></figure>



<h3>Updating the rendered element</h3>



<p>React elements are immutable, i.e. we can&#8217;t change them.</p>



<p>For updating the UI, we have to create a new root element, which we can render again to upadate the UI.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/update.png" alt="" class="wp-image-1145" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/update.png 631w, https://www.maxester.com/blog/wp-content/uploads/2023/12/update-300x103.png 300w" sizes="(max-width: 631px) 100vw, 631px" /><figcaption>The counter fuction will execute every second, hence the UI will be updated each second with a new value.</figcaption></figure>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/12/07/react-render-html/">Why we use Render in React?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2023/12/07/react-render-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
