Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.body.appendChild(target);
const ComponentConstructor = Component.default || Component;
const component = new ComponentConstructor({
...options,
target,
});
mountedContainers.add({ target, component });
return {
component,
target,
// eslint-disable-next-line no-console
debug: (el = document.body) => console.log(prettyDOM(el)),
...getQueriesForElement(document.body),
};
};
document.body.appendChild(target);
let ComponentConstructor = Component.default || Component;
const component = new ComponentConstructor({
...options,
target,
});
mountedContainers.add({ target, component });
return {
component,
target,
// eslint-disable-next-line no-console
debug: (el = document.body) => console.log(prettyDOM(el)),
...getQueriesForElement(document.body),
};
};