renderMedAssist and get back a React root you can unmount. Use this when you’re already in a React app and want the polished widget — themed to your brand — without writing chat UI yourself.
Install
Render in a React app
renderMedAssist mounts the widget into a container element. Call it from an effect against a ref, and unmount via the returned root on cleanup.
API
renderMedAssist(container, agentId, config?)
The DOM element to mount the widget into.
Your MedAssist agent identifier from console.eka.care.
Optional configuration. See the Configuration reference.
Root — call .unmount() to tear the widget down.
Use from a script tag (CDN)
The same function is attached towindow as window.renderMedAssist, so you can use the prebuilt bundle without a build step. Remember to include the stylesheet.
window.renderMedAssist is attached automatically when the bundle loads — whether imported as a module or included via a script tag.Next steps
Configuration reference
Every field of
MedAssistConfig.Theming & design system
Brand the widget with the Eka design system.

