0.0.10 • Published 2 years ago

svelte-cross-frameworks v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

svelte-cross-frameworks

Wrapper your Svelte component to React/Vue component

🔥 Features

  • Bind the svelte component to the React/Vue world easily.
  • Pass the reactive data as props to the svelte component.
  • Listen to the events emitted from the svelte component.
    • Use onXXX as the event callback by convention.
  • Access svelte instance through ref.
  • Typescript powered.

🧩 Installation

yarn add svelte-cross-frameworks (or npm/pnpm)

👇 Usage

import { createReactComponent, createVueComponent } from 'svelte-cross-frameworks'
import AwesomeSvelteComponent from './AwesomeSvelteComponent.svelte'

export const AwesomeSvelteComponentReact = createReactComponent(AwesomeSvelteComponent)
export const AwesomeSvelteComponentVue = createVueComponent(AwesomeSvelteComponent)
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago