<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ryan's Second Brain]]></title><description><![CDATA[Ryan's Second Brain]]></description><link>https://ryanheo.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 10:51:31 GMT</lastBuildDate><atom:link href="https://ryanheo.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[[Next.JS] Routing]]></title><description><![CDATA[Why I want to use the Router
As I am currently working on my webpage, I thought it would be great if I had an admin page as well so that I can easily update my experience and skills. Now, my page is running as a single-page website. I will make anoth...]]></description><link>https://ryanheo.hashnode.dev/nextjs-app-routing</link><guid isPermaLink="true">https://ryanheo.hashnode.dev/nextjs-app-routing</guid><category><![CDATA[Next.js]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[routing]]></category><category><![CDATA[Frontend Development]]></category><dc:creator><![CDATA[Ryan Heo]]></dc:creator><pubDate>Fri, 18 Oct 2024 19:08:44 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1729279421148/82e56fd2-bff0-4d65-ac82-68b823b9a609.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="heading-why-i-want-to-use-the-router">Why I want to use the Router</h3>
<p>As I am currently working on my webpage, I thought it would be great if I had an admin page as well so that I can easily update my experience and skills. Now, my page is running as a single-page website. I will make another page and let it be connected by adding a URL path.</p>
<h3 id="heading-nextjs-page-router">Next.JS: Page Router</h3>
<p><a target="_blank" href="https://nextjs.org/docs/app/building-your-application/routing">Next.JS official page - The 'app' Router</a><br />I found that the version 13 of Next.JS has the ‘app’ router on their official website. I will simply use the router to implement the routing function. However, I am going to use <code>Page Router</code> here.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729277909918/f013ef2e-ecd1-4fee-abbb-df4ab081d768.png" alt="Tree map for my project pages" class="image--center mx-auto" /></p>
<p>Under my project root, I created a <code>pages</code> directory. In the directory, I put my <code>index.tsx</code> file to render out my landing page. To make another route to my admin page, I made another directory, <code>admin</code>, with another <code>index.tsx</code> file. Now I can access the admin page using the <code>/admin</code> URL path.</p>
]]></content:encoded></item></channel></rss>