<?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: Dominic Rockson</title>
    <description>The latest articles on DEV Community by Dominic Rockson (@psrockstar098).</description>
    <link>https://dev.to/psrockstar098</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%2F4151129%2F793e0f91-86d3-4069-b8fa-35d37a5ae9ff.jpg</url>
      <title>DEV Community: Dominic Rockson</title>
      <link>https://dev.to/psrockstar098</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/psrockstar098"/>
    <language>en</language>
    <item>
      <title>I built a React Link component that prefetches before you click</title>
      <dc:creator>Dominic Rockson</dc:creator>
      <pubDate>Wed, 30 Sep 2026 00:48:39 +0000</pubDate>
      <link>https://dev.to/psrockstar098/i-built-a-react-link-component-that-prefetches-before-you-click-28bj</link>
      <guid>https://dev.to/psrockstar098/i-built-a-react-link-component-that-prefetches-before-you-click-28bj</guid>
      <description>&lt;p&gt;Your app's navigation is only as fast as your Link component. The default one just... navigates. I wanted more, so I built rockzy-link.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Smart prefetching&lt;/strong&gt; — analyzes and preloads routes users are likely to visit next, instead of prefetching everything and wasting bandwidth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Route caching&lt;/strong&gt; — back/forward navigation feels instant&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scroll restoration&lt;/strong&gt; — users land where they expect&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline hooks&lt;/strong&gt; — hooks so your UI degrades gracefully when the network drops&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Navigation snapshots&lt;/strong&gt; — capture and restore navigation state&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accessibility&lt;/strong&gt; — proper semantics out of the box&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i rockzy-link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Link&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;rockzy-link&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Drop-in replacement — prefetching just works&lt;/span&gt;
&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Link&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/dashboard"&lt;/span&gt; &lt;span class="na"&gt;prefetch&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Dashboard&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Link&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I'm a developer from Liberia working mostly in Zig and JavaScript. I kept hitting the same wall: client-side navigation that felt sluggish no matter how optimized the pages were. The bottleneck was the Link itself. So I fixed it at the source.&lt;/p&gt;

&lt;p&gt;It's MIT licensed and I'd genuinely love feedback — try it, break it, tell me what's missing.&lt;/p&gt;

&lt;p&gt;npm: &lt;a href="https://www.npmjs.com/package/rockzy-link" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/rockzy-link&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/psrockstar098/rockzy-link" rel="noopener noreferrer"&gt;https://github.com/psrockstar098/rockzy-link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
