CMS Development

SaraRandolph
Participant

What is the best way to embed React App into Hubspot page?

My company is switching to Hubspot for our landing page which will be created in the Hubspot CMS but we want our developers to have control over the header component. We would like to reuse the header component in our react app AND the hubspot page. Ideally we want to be able to host the header component on our servers so our developers can easily make changes. 

Does anyone have any experience with this? I couldn't find a ton online but we are thinking to bundle it with webpack into a script tag but we're not sure what the load time would be. Is there any way to add npm packages to a Hubpsot page?

Thank you in advance!

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

What is the best way to embed React App into Hubspot page?

Hello @SaraRandolph ,

Welcome to HubSpot!  

I would like to direct you to this post authored by @Kacper  and solved by @Kevin-C 🙂 

 

I believe that should get you started.

 

Let us know how it works out for you or if you have additional questions.  It is a pretty exciting time to be developing on the HubSpot CMS (not that I am biased or anything )

 

Thanks!