To use Custom Tabs in a React environment, you’ll need to bundle your custom code before passing it to the editor. Follow these steps:
Create a new file and add the custom tab code you want to use.
Bundle the file using Webpack (or any preferred bundler). This step is required because the
customJSproperty expects a standalone, browser-ready JavaScript file.Host the bundled file on a server or CDN so it can be accessed via a public URL.
Provide the hosted file URL to the
customJSproperty in yourunlayer.init()configuration.
Note: Bundling is essential when working in React because the code needs to be transformed into a format the editor can load directly in the browser.
