# JS Partials in theme created with React (2026.3)

**URL:** <https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638>\
**Category:** Develop, Build & Integrate\
**Tags:** javascript, templates, website-pages\
**Created:** [June 18, 2026, 2:30pm UTC](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638 "2026-06-18T14:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomaszklusak](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@tomaszklusak](https://community.hubspot.com/u/tomaszklusak)\
**Post date:** [June 18, 2026, 2:30pm UTC](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638/1 "2026-06-18T14:30:21Z")

</div>

Hey,

TLDR: does JS Partials work in CMS Theme created with React?

Lately I’ve migrated my react modules from 2025.1 to 2026.3. I used the `@hubspot/create-cms-theme` package and structure.

I have my partials inside `/components/partials/[partial-name]/index.tsx`

It worked before migration and now it’s acting weird: I mean, partials don’t work on localhost/when proxing published website (i get no error anywhere - they just dont show up) , but after i deploy and preview the page they work.

When i start the local server there is error:

> - line 6: Error in `@preview/…/@projects/…/base/templates/layouts/base.hubl.html`: PublicApiException: Unable to render JS Component because a JS Rendering Lambda function corresponding to entry point `@projects/…/base/components/partials/[partial-name]/index.tsx` was not found. Verify that `@projects/[]/base/components/partials/[partial-name]/index.tsx` is a valid `entryPoint`

As i mentioned, i don’t get any error when deploying the project.

I can see the default theme in `@hubspot/create-cms-theme` does not have any partials.

The docs are not clear.  
[Here](https://developers.hubspot.com/docs/cms/start-building/introduction/react-plus-hubl/project-structure) it says components directory is: `The directory that contains the project’s islands and modules directories.`  
But in other [react section JS Partials](https://developers.hubspot.com/docs/cms/reference/react/js-partials): `Partials must be located in the ` **`components/partials/`** ` subdirectory of the JavaScript project component`

Am i missing something or there is no support for partials in new react theme?

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [June 18, 2026, 4:10pm UTC](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638/3 "2026-06-18T16:10:47Z")

</div>

Hey @tomaszklusak,

Welcome to the Community!

Based on the documentation on this, it may be worth confirming that the path in your `js_partial` tag matches the file exactly, just to rule that out. The [JS Partials](https://developers.hubspot.com/docs/cms/reference/react/js-partials) doc has the specifics there.

In the meantime, also tagging in some folks from our community to see if they’ve run into this before:

Hey @SteveHTM, @GRajput, @Humashankar – Do you have any suggestions for @tomaszklusak on this?

Thanks in advance!

Sam, Community Manager

---

<div class="post-metadata">

**Author:** ![tomaszklusak](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@tomaszklusak](https://community.hubspot.com/u/tomaszklusak)\
**Post date:** [June 18, 2026, 5:27pm UTC](https://community.hubspot.com/t/js-partials-in-theme-created-with-react-2026-3/150638/4 "2026-06-18T17:27:27Z")

</div>

Yes, i’m using full path to the file: `@projects/[]/base/components/partials/[partial-name]/index.tsx`

Also, in the logs of build i can see all modules are created with log:

`Creating module from files in 'server/module-definitions/[module-name]'`

Can’t see any info about partials tho.
