<?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>Reactathon Archives - Blog IT</title>
	<atom:link href="https://blogit.create.pt/tag/reactathon/feed/" rel="self" type="application/rss+xml" />
	<link>https://blogit.create.pt/tag/reactathon/</link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Fri, 01 Jul 2022 13:55:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Reactathon 2022 &#8211; A Short Summary</title>
		<link>https://blogit.create.pt/davidpereira/2022/07/01/reactathon-2022-a-short-summary/</link>
					<comments>https://blogit.create.pt/davidpereira/2022/07/01/reactathon-2022-a-short-summary/#respond</comments>
		
		<dc:creator><![CDATA[David Pereira]]></dc:creator>
		<pubDate>Fri, 01 Jul 2022 13:55:45 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[React]]></category>
		<category><![CDATA[Reactathon]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=12734</guid>

					<description><![CDATA[<p>Let's take a look at the new updates on the React community, specifically Reactathon 2022.</p>
<p>The post <a href="https://blogit.create.pt/davidpereira/2022/07/01/reactathon-2022-a-short-summary/">Reactathon 2022 &#8211; A Short Summary</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Lately we&#8217;ve been filled with cool stuff in the React community. In case you missed it, <a href="https://www.reactathon.com/" target="_blank" rel="noreferrer noopener">Reactathon </a>happened at the beginning of May, and with it came a lot of interesting talks and discussions between people in the community.</p>



<p>In this post I&#8217;ll reference what I consider to be the most interesting and hot topics on the React community&#8230; and try to make it short.</p>



<p>If you haven&#8217;t seen the conference, you can take a look at this<a href="https://www.youtube.com/playlist?list=PLRvKvw42Rc7O0eWo2m_guXdZsGTEQM_jj" target="_blank" rel="noreferrer noopener"> YT playlist for all sessions</a>.</p>



<h2 class="wp-block-heading">The state of React 2022</h2>



<p>So first of all, what is the state of React currently? With <a href="https://reactjs.org/blog/2022/03/29/react-v18.html">React 18</a>, what was once called concurrent mode is now concurrent features. This changes the approach into an <strong>incremental adoption</strong>, so that you could use <strong>concurrent features</strong> in specific places of your React app.</p>



<p>In this talk, Lee also announces Next.js new routing system which resembles Remix a lot. They want to take advantage of <strong>nested routes</strong> which is great! This allows us to provide a better user experience on pages that have one component that blocks rendering.</p>



<p>Last but not least, there are new developments when it comes to <strong>server-side rendering</strong>, and new <strong>client-side rendering APIs</strong>.</p>



<h2 class="wp-block-heading">Edge computing</h2>



<p>If you are unaware of this type of compute, Edge computing allows a better user experience, because it reduces the time you get a response with the content you want to visualize. The time is reduced because to process your request you don&#8217;t need to &#8220;talk&#8221; to a distant server on the oasis.</p>



<p>CDN providers like Cloudflare, are building new runtimes to allow you to run code closer to your customers &#8211; on the edge. Cloudflare workers for example, don&#8217;t use Node.js or Deno under the hood, it&#8217;s their own JS runtime. Of course, an effort is being done to <a href="https://blog.cloudflare.com/introducing-the-wintercg/" target="_blank" rel="noreferrer noopener">standardize these runtimes</a>.</p>



<p>In this talk, Kent talks about how Remix improves the developer experience for edge computing. First they use the <a href="https://developer.mozilla.org/pt-BR/docs/Web/API/Fetch_API" target="_blank" rel="noreferrer noopener">Web Fetch API</a>, and depending on where you want to deploy your function. Remix then translates the request/response objects to the respective platform&#8217;s API. They also support <strong>streaming in the edge</strong>, in order to send some content to the user quickly, and then send the rest.</p>



<p>With that said, this is all in JS/TS or WASM land. At least I haven&#8217;t seen a lot of support for other languages and runtimes (e.g. C#) on services that provide edge computing.</p>



<h2 class="wp-block-heading">Streaming server components</h2>



<p>With React 18 it&#8217;s now possible to stream changes to the browser, with new APIs like Suspense that allows for asynchronous processing.</p>



<p>Why is this cool? Because we <strong>don&#8217;t want to block rendering with data fetching</strong>. When our component needs to fetch data before rendering what the user wants to see, we need to render a loading spinner&#8230; which ain&#8217;t cool.</p>



<p><strong>How about we initiate <em>fetches </em>before we render. This way the requests are in parallel and don&#8217;t block rendering</strong>. Using streaming server rendering fixes this, which is why it&#8217;s so awesome! Ryan Florence goes more in detail how this is done in this talk: <a href="https://www.youtube.com/watch?v=95B8mnhzoCM" target="_blank" rel="noreferrer noopener">When to fetch: Remixing React Router</a>.</p>



<p>Bear in mind, this is just one way of rendering. Last year at React Conf 2021 there was an intro session about this topic as well: <a href="https://www.youtube.com/watch?v=pj5N-Khihgc&amp;list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa" target="_blank" rel="noreferrer noopener">Streaming Server Rendering with Suspense</a>. Another great session that talks about the different rendering patterns: <a href="https://www.youtube.com/watch?v=PN1HgvAOmi8" target="_blank" rel="noreferrer noopener">Advanced Rendering Patterns: Lydia Hallie</a>. It&#8217;s an amazing session to help you visualize the impacts on performance, and what are the trade-offs of each pattern.</p>
<p>The post <a href="https://blogit.create.pt/davidpereira/2022/07/01/reactathon-2022-a-short-summary/">Reactathon 2022 &#8211; A Short Summary</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/davidpereira/2022/07/01/reactathon-2022-a-short-summary/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
