react-svelte-components

1.0.0 • Public • Published

Write React components in Svelte

This package makes it easy to turn Svelte code into React components.

Companies that use Svelte in production usually start with a single component. So if you want to use Svelte at work, start with a small experiment. Do people think it is nice? Do more! Do people think it sucks? Do less!

Example

Usage

After you have compiled an Svelte program to JavaScript, you can embed it in React like this:

import Svelte from 'react-svelte-components'
import { Todo } from '../dist/svelte/todomvc.js'
 
function render() {
    return <Svelte src={Todo} />
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-svelte-components

      Weekly Downloads

      0

      Version

      1.0.0

      License

      BSD-3-Clause

      Last publish

      Collaborators

      • jihchi