---
title: "Discussion on \"Creating A Router In Vanilla Javascript\" | Hashnode"
description: "Discussion on \"Creating A Router In Vanilla Javascript\". Understand how to implement a simple router for SPAs using vanilla javascript"
url: "https://hashnode.com/posts/creating-a-router-in-vanilla-javascript/67ed108e4d4aa7c400778ea9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating A Router In Vanilla Javascript](https://pranavpatani.hashnode.dev/creating-a-router-in-vanilla-javascript?utm_source=hashnode&utm_medium=feed)

Understand how to implement a simple router for SPAs using vanilla javascript

Apr 2, 2025 · 16 min read · pranavpatani.hashnode.dev  
Read the article

-   [#vanilla-javascript-router](https://hashnode.com/tag/vanilla-javascript-router)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#router](https://hashnode.com/tag/router)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#url](https://hashnode.com/tag/url)
-   [#routing](https://hashnode.com/tag/routing)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Pranav Patani](https://hashnode.com/@PranavPatani)

@PranavPatani · India

  
[View profile](https://hashnode.com/@PranavPatani)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
