Wrapper your Svelte component to React/Vue component
onXXX
as the event callback by convention.ref
.yarn add svelte-cross-frameworks (or npm/pnpm)
import { createReactComponent, createVueComponent } from 'svelte-cross-frameworks'
import AwesomeSvelteComponent from './AwesomeSvelteComponent.svelte'
export const AwesomeSvelteComponentReact = createReactComponent(AwesomeSvelteComponent)
export const AwesomeSvelteComponentVue = createVueComponent(AwesomeSvelteComponent)