<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Johan Rönnblom</title>
    <description>The latest articles on DEV Community by Johan Rönnblom (@johan_ronnblom).</description>
    <link>https://dev.to/johan_ronnblom</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281441%2F6966e238-5972-4d72-bdd3-b02f9fe3d0a0.png</url>
      <title>DEV Community: Johan Rönnblom</title>
      <link>https://dev.to/johan_ronnblom</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johan_ronnblom"/>
    <language>en</language>
    <item>
      <title>I built a web "framework" that makes FE code 30-60% less complex - Snapse is also faster than React &amp; Vue</title>
      <dc:creator>Johan Rönnblom</dc:creator>
      <pubDate>Thu, 03 Dec 2026 23:27:45 +0000</pubDate>
      <link>https://dev.to/johan_ronnblom/i-built-a-web-framework-that-makes-fe-code-30-60-less-complex-snapse-is-also-faster-than-react-44c6</link>
      <guid>https://dev.to/johan_ronnblom/i-built-a-web-framework-that-makes-fe-code-30-60-less-complex-snapse-is-also-faster-than-react-44c6</guid>
      <description>&lt;p&gt;In spring 2025, I asked myself: why isn't it possible to have a web framework that is radically simpler? I started by writing some pseudocode, then set out to find out why I couldn't make it real.&lt;/p&gt;

&lt;p&gt;I failed.&lt;/p&gt;

&lt;p&gt;It works. It's &lt;a href="https://krausest.github.io/js-framework-benchmark/2026/chrome158.html" rel="noopener noreferrer"&gt;fast&lt;/a&gt;. And it really makes FE code &lt;em&gt;much&lt;/em&gt; &lt;a href="https://snapse.org/why/benchmark" rel="noopener noreferrer"&gt;simpler&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmxe1p7160lrbaf3i5r6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmmxe1p7160lrbaf3i5r6.png" alt="Snapse benchmark comparison" width="759" height="279"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, &lt;a href="https://snapse.org" rel="noopener noreferrer"&gt;Snapse&lt;/a&gt; is not really a framework — it's a tiny standard JavaScript library. No compiler needed. It also fully supports TypeScript.&lt;/p&gt;

&lt;p&gt;It's based on a form of signals, but with some twists. Along with the familiar &lt;code&gt;compute()&lt;/code&gt; notation, Snapse creates derived states by calling chain functions on existing states — &lt;code&gt;myArray.filter(filterFn).toSorted(sortFn).map(v =&amp;gt; li(v))&lt;/code&gt; creates a reactive array of &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; elements that update when the values in &lt;code&gt;myArray&lt;/code&gt; change, when something is added, removed, and/or moved in the array - or when any states used by &lt;code&gt;filterFn&lt;/code&gt; or &lt;code&gt;sortFn&lt;/code&gt; are changed.&lt;/p&gt;

&lt;p&gt;Another way is to call a function that is a state:&lt;br&gt;
&lt;code&gt;const value = await api.getValue(arg)&lt;/code&gt; creates a reactive value if the getValue function is a state. And if &lt;code&gt;arg&lt;/code&gt; is a state, &lt;code&gt;value&lt;/code&gt; will be updated — calling the API again — when &lt;code&gt;arg&lt;/code&gt; changes.&lt;/p&gt;

&lt;p&gt;Updates are lazy, glitch-free and batched. What that means is that nothing will be recalculated or re-rendered unless it is actually used, &lt;em&gt;and&lt;/em&gt; at least one dependency changed - and then only once, even in complex cases.&lt;/p&gt;

&lt;p&gt;I've now run out of ideas for why &lt;a href="https://snapse.org" rel="noopener noreferrer"&gt;Snapse&lt;/a&gt; doesn't work, so I need your help to tell me what is wrong with it.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
