react-svelte-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

react-svelte-component

A component to use Svelte components in your React app

NPM

Install

npm install --save react-svelte-component

Usage

import * as React from 'react'
 
import SvelteComponent from 'react-svelte-component'
import SvelteThing from './SvelteThing.svelte';
 
class Example extends React.Component {
  render () {
    return (
      <SvelteComponent this={SvelteThing} />
    )
  }
}

Thanks

Based on the react-svelte library by Rich Harris. Thanks!

License

MIT © TheBosZ

Dependencies (0)

    Dev Dependencies (20)

    Package Sidebar

    Install

    npm i react-svelte-component

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    35.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • thebosz