ziko-wrapper
Version:
integrate zikojs elements within other ui framework like vue react solidjs svelte astro ...
24 lines (18 loc) • 453 B
JSX
import { tags } from "ziko"
import { ZikoWrapper, zikofy } from "ziko-wrapper/react"
const {h1, p} = tags
const Heading = ({msg}) => h1(msg)
const Ex = ({color}, ...children) => {
return p(children[0]).style({color})
}
const App = () =>{
return(
<ZikoWrapper>
<Ex color="red">
<Heading msg="hello world"/>
<Heading msg="hello world"/>
</Ex>
</ZikoWrapper>
)
}
export default App