Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create(element) {
let container = ServerDriver.createBody();
let rootComponent = Instance.mount(element, container, {});
let renderedComponent = rootComponent.getRenderedComponent();
renderedComponent.toJSON = () => {
return new Serializer(container).toJSON();
};
renderedComponent.getInstance = () => {
return renderedComponent._instance;
};
renderedComponent.update = (element) => {
Instance.mount(element, container, {});
};
renderedComponent.unmount = () => {