bigopon showed me sample how to do similar gitter
pasting it here to test out
const viewFactory = renderingEngine.getViewFactory({
templateOrNode: '<template>...</template>',
instructions: []
}, containerButExtendedTo__IRenderContext__NOT_needed__but_can_provide_to_overlay_on_root_container)
const view = viewFactory.create();
// instead of relying on ViewSlot to tell a view where to add / insert the nodes
// each NodeSequence knows how to handle that operation itself
view.$nodes.appendTo(document.body);
// or
view.$nodes.insertBefore(document.body.lastChild);
view.$bind(BindingFlags.fromBind /* or any extra flags you want using bitwise operator | */, { testButton: () => {}, })
bigopon showed me sample how to do similar gitter pasting it here to test out