Mounting
Use mount
method to render React component in places that are allowed by Visual Composer.
Arguments:
mountKey
(string)callback
(function) that returns React component.
Allowed mountKey
names:
panelMessages:third-party
- this will render panel inside messages window in VC editor.
Example:
import ExampleInsightsPanel from './ExampleInsightsPanel'
window.vcwbEditorApi.mount('panelInsights:third-party', () => { return <ExampleInsightsPanel />})