UNPKG

ziko-wrapper

Version:

integrate zikojs elements within other ui framework like vue react solidjs svelte astro ...

19 lines (15 loc) 490 B
import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './styles/index.css' import App from './App.jsx' import { Hello } from "./Hello.jsx" import { zikofy } from "ziko-wrapper/react" const Zikofied = zikofy(Hello, {name : 'ziko'}) globalThis.Zikofied = Zikofied Zikofied.mount(document.body) // Zikofied.then(e=>e.mount(document.body)) createRoot(document.getElementById('root')).render( <StrictMode> <App /> </StrictMode>, )