CMS Development

BBauman
Mitglied

Hosting React App

I am trying to figure out how best to port an existing react app to be hosted on Hubspot CMS.  I found the Hubspot React App template project and am able to upload files to Hubspot Design Manager, but it comes with some sizeable limitations.

 

It appears that the template React project combines all the js/css into one file that the module loads.  Since the React app already uses modules, this seems like a big step backwards that will hurt loading times.  Additionally, it seems that the modules needs to specify the js/css files in the module.html as a static reference.  React specifically hashes files so the browser doesn't cache and old file for a new build, but this also seems to be lost with the design.

 

Is there any way I can literally just host relative static files?  Has anyone tried the same thing in the past?

0 Upvotes
2 Antworten
BreannaRuiz
Mitglied

Hosting React App

It's understandable to encounter challenges, especially with the limitations you've mentioned regarding file size and module loading.
Have you explored alternative approaches or sought advice from a React development company like Wirefuture? Their expertise in React technology could offer valuable insights and solutions to overcome these hurdles. They can assist in optimizing your app's performance and integration with Hubspot, ensuring a seamless user experience.
Don't hesitate to reach out for assistance, and keep exploring options to find the best path forward for your project.

0 Upvotes
Jaycee_Lewis
Community-Manager/-in
Community-Manager/-in

Hosting React App

Hey, @BBauman 👋 Check out this document for information on what's possible — How to use JavaScript frameworks and libraries on HubSpot. Including this section on using React.

 

Have fun building! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes