You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
* Render a functional component. The first argument is the component to render. This can be either a JSX tag or an `h` function. The second argument is the element to hydrate or update. During the first render, the target element is hydrated with the component provided. Further updates patch the existing element based on the virtual DOM.
throw 'Cannot insert Fragment tag directly into DOM.'
}
let oldTarget = ''
if (typeof target === 'string') {
oldTarget = target
target = document.querySelector(target)
}
if (!target) {
let msg = ''
if (oldTarget) msg = ` The selector you provided was: "${oldTarget}"`
console.error(
`@composi/core Error: The second parameter for render function was invalid. Check the selector you provided and make sure that it exists in the DOM before trying to render. ${msg}`