1.0.0 • Published 4 years ago

svelte-react v1.0.0

Weekly downloads
253
License
MIT
Repository
github
Last release
4 years ago

svelte-react

Use React components inside Svelte apps.

<script>
	import ReactComponent from 'svelte-react';
	import Widget from './Widget.jsx';
</script>

<p>this is a React component inside a Svelte app:</p>
<ReactComponent this={Widget} children="child text" {...props} />

Limitations

ReactComponent does not accept any children or slots. If you want to specify children to the React component, you have to pass them in through the children prop.

Resources

This project was heavily inspired by react-svelte. If you want to use Svelte components inside React apps, have a look at react-svelte.

License

MIT

1.0.0

4 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago