---
title: "Discussion on \"How to Route using Subdomain in React.\" | Hashnode"
description: "Discussion on \"How to Route using Subdomain in React.\". When i was making my portfolio in React , i wanted to have all components in different subdomains.\nEg :\nMy domain : https://fredy.rocks/ ,\nI want my Projects component at https://projects.fredy.rocks/,My blog at https://blog.fredy.rocks/ and more..\nI..."
url: "https://hashnode.com/posts/how-to-route-using-subdomain-in-react/6012574d8b620b1d6bdf84c4"
---

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

Discussion

[Fredy Somy](https://hashnode.com/@fredysomy)

Student | Software Developer | Love with JavaScript and Python | Part time Open Sourcerer

Jan 28, 2021

# [How to Route using Subdomain in React.](https://fredysomy.hashnode.dev/how-to-route-using-subdomain-in-react?utm_source=hashnode&utm_medium=feed)

When i was making my portfolio in React , i wanted to have all components in different subdomains. Eg : My domain : https://fredy.rocks/ , I want my Projects component at https://projects.fredy.rocks/,My blog at https://blog.fredy.rocks/ and more.. I...

fredysomy.hashnode.dev 3 min read

[#javascript](https://hashnode.com/tag/javascript) [#reactjs](https://hashnode.com/tag/reactjs) [#react-router](https://hashnode.com/tag/react-router) [#routing](https://hashnode.com/tag/routing) [#apis](https://hashnode.com/tag/apis)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
