<?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>.render() function &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/tag/render-function/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>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>
