Start here. This is the direct spoken answer to practice first.
Overview
React can own the container while an external library owns the DOM inside it, provided that lifecycle ownership is explicit.
I render a stable container, capture its DOM node with a ref, and create the library instance in an Effect after commit. The Effect stores the instance in a ref and destroys it during cleanup. Inputs that genuinely reconfigure the widget either call a supported update API or recreate the instance deliberately; React does not also render children inside DOM that the library owns.