Learn more about using js_partial in your CMS React projects.
components/partials/
subdirectory of the JavaScript project component. For instance, if you have a file components/partials/Header.jsx
, which default exports a React component, then you can include it in your project HubL like so:
js_partial
alongside the path
will be available within the React component as props.
/components/partials/ExamplePartial/index.js
/components/partials/ExamplePartial.jsx
ExamplePartial/index.jsx
or ExamplePartial.jsx
) must contain a default export of your component.