<?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>Forem: Nahid Salekin</title>
    <description>The latest articles on Forem by Nahid Salekin (@imsalekin).</description>
    <link>https://forem.com/imsalekin</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F815239%2F6b790500-82ec-4659-938b-6ad40e4667d3.jpeg</url>
      <title>Forem: Nahid Salekin</title>
      <link>https://forem.com/imsalekin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/imsalekin"/>
    <language>en</language>
    <item>
      <title>How I added Parallel Routing to React Router v6 — Introducing parallel-router 🚀</title>
      <dc:creator>Nahid Salekin</dc:creator>
      <pubDate>Wed, 22 Oct 2025 16:15:11 +0000</pubDate>
      <link>https://forem.com/imsalekin/how-i-added-parallel-routing-to-react-router-v6-introducing-parallel-router-30aj</link>
      <guid>https://forem.com/imsalekin/how-i-added-parallel-routing-to-react-router-v6-introducing-parallel-router-30aj</guid>
      <description>&lt;p&gt;When working with React Router v6, I found myself wishing for a feature that doesn’t exist — parallel routes.&lt;br&gt;
If you’ve ever tried building a dashboard or chat app where two routes’ contents should coexist on one page (like a sidebar + detail view), you’ve probably hit this limitation too.&lt;/p&gt;

&lt;p&gt;That’s why I built parallel-router&lt;br&gt;
 — a lightweight solution that lets you render multiple independent routes simultaneously.&lt;/p&gt;

&lt;p&gt;💡 The Problem&lt;/p&gt;

&lt;p&gt;React Router v6 is amazing, but it doesn’t natively support rendering two distinct route outlets at once.&lt;br&gt;
You’re often forced into deeply nested structures or complex state juggling just to simulate it.&lt;/p&gt;

&lt;p&gt;⚙️ The Solution&lt;/p&gt;

&lt;p&gt;parallel-router introduces a wrapper that allows multiple route contexts to exist side by side:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;ParallelRouter&amp;gt;&lt;br&gt;
  &amp;lt;Route path="/users" element={&amp;lt;UserList /&amp;gt;} /&amp;gt;&lt;br&gt;
  &amp;lt;Route path="/users/:id" element={&amp;lt;UserProfile /&amp;gt;} /&amp;gt;&lt;br&gt;
&amp;lt;/ParallelRouter&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This makes it super easy to create layouts like:&lt;/p&gt;

&lt;p&gt;Chat apps (list + conversation)&lt;/p&gt;

&lt;p&gt;Dashboards (menu + content)&lt;/p&gt;

&lt;p&gt;Multi-view editors&lt;/p&gt;

&lt;p&gt;📦 Try it out:&lt;/p&gt;

&lt;p&gt;🔗 NPM: &lt;a href="https://www.npmjs.com/package/parallel-router" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/parallel-router&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔗 Docs &amp;amp; Demo: &lt;a href="https://salekin02.github.io/parallel-router" rel="noopener noreferrer"&gt;https://salekin02.github.io/parallel-router&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🔗 GitHub: &lt;a href="https://github.com/salekin02/parallel-router" rel="noopener noreferrer"&gt;https://github.com/salekin02/parallel-router&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🧠 What’s next&lt;/p&gt;

&lt;p&gt;I’m planning to extend support for other versions of React Router and would love your feedback on what features you’d like to see next!&lt;/p&gt;

&lt;p&gt;If you find it useful, a ⭐ on GitHub would mean a lot 💛&lt;br&gt;
or you can support me at &lt;a href="https://buymeacoffee.com/salekin02" rel="noopener noreferrer"&gt;buymeacoffee.com/salekin02&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>react</category>
      <category>parallelroute</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
