# Hubspot-react with router (react-router-dom)

**URL:** <https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344>\
**Category:** CMS Development\
**Tags:** javascript\
**Created:** [September 19, 2022, 9:52am UTC](https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344 "2022-09-19T09:52:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YLIN0](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@YLIN0](https://community.hubspot.com/u/YLIN0)\
**Post date:** [September 19, 2022, 9:52am UTC](https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344/1 "2022-09-19T09:52:45Z")

</div>

Hi I’m using the

hubspot-react boilerplate to create a module, but I’ve realized that I cannot make the router works (react-router-dom)

also I cannot change the current url by using window.history.pushState in the module

Is there some work-arounds ?

Thanks

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 20, 2022, 6:31pm UTC](https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344/2 "2022-09-20T18:31:36Z")

</div>

Hi, @YLIN0 👋 Thanks for reaching out. I feel like the community needs additional information here. Hey, @Kevin-C @Oezcan @Teun, do you have any suggestions for @YLIN0 or tips on the kind of additional info they can include?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![YLIN0](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@YLIN0](https://community.hubspot.com/u/YLIN0)\
**Post date:** [January 3, 2023, 1:08pm UTC](https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344/3 "2023-01-03T13:08:16Z")

</div>

Follow up :

Since I got no answers and the hubspot react boilerplate wasn’t enough documented.

finally I’ve remove the whole hubspot boilerplate in the project.

Using pure react without hubspot in it, it works great.

---

<div class="post-metadata">

**Author:** ![UGhimire](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@UGhimire](https://community.hubspot.com/u/UGhimire)\
**Post date:** [September 9, 2023, 3:23pm UTC](https://community.hubspot.com/t/hubspot-react-with-router-react-router-dom/65344/4 "2023-09-09T15:23:28Z")

</div>

Hi @YLIN0 can you please be more specific? How could you publish the app if you removed the Hubspot boilerplate? Thanks.
