addMessageHandler()
Mounts a message handling function, used to handle messages sent from the Aura component to the framed JavaScript app.
Used within a JavaScript app uploaded as a static resource and referenced by lightning:container, this example mounts a message handling function. In a React app, functions must be mounted to be part of the document-object model and rendered in the output.
| Name | Type | Description |
|---|---|---|
handler: (userMsg: any) => void | function | The function that handles messages sent from the Aura component. |
None.