react-svelte-component
v1.0.2
Published
A component to use Svelte components in your React app
Downloads
3
Readme
react-svelte-component
A component to use Svelte components in your React app
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