<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Svelte on jshji</title><link>https://jshji.com/tags/svelte/</link><description>Recent content in Svelte on jshji</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 13 Jun 2026 00:06:54 +0800</lastBuildDate><atom:link href="https://jshji.com/tags/svelte/index.xml" rel="self" type="application/rss+xml"/><item><title>Svelte again</title><link>https://jshji.com/posts/svelte-day-1/</link><pubDate>Sat, 13 Jun 2026 00:06:54 +0800</pubDate><guid>https://jshji.com/posts/svelte-day-1/</guid><description>&lt;p&gt;In the era of artificial intelligence, I&amp;rsquo;m going through Svelte basics! It&amp;rsquo;s been a while since I used Svelte, and it&amp;rsquo;s
been a long while since I last read through tutorial for a language framework. This feels good, I am enjoying it!&lt;/p&gt;
&lt;p&gt;Here are some things that I wanted to take a note of:&lt;/p&gt;
&lt;h2 id="mutation-compatible-reactivity"&gt;Mutation-compatible reactivity&lt;/h2&gt;
&lt;p&gt;When I was using React years ago, I often wrote updates like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-js" data-lang="js"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a6e22e"&gt;data&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; [...&lt;span style="color:#a6e22e"&gt;data&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;newData&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;instead of:&lt;/p&gt;</description></item></channel></rss>