sr

svelte-react

Use React components inside Svelte apps.

Showing:

Popularity

Downloads/wk

11

GitHub Stars

46

Maintenance

Last Commit

1yr ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100