Sveltris

screenshot of Sveltris
react
svelte
vite

Piece together any framework with Svelte (like Tetris)

Overview

Sveltris is a tool that allows for intermixing UI and state primitives between the Svelte and React frameworks seamlessly. While Svelte offers an excellent developer experience, its ecosystem may lack certain libraries commonly found in React. With Sveltris, users can leverage the strengths of both frameworks without the need to rewrite their entire application.

Features

  • Hooks inside Svelte: Easily utilize logic hooks from React within Svelte by wrapping them with a simple "use" function, generating a Svelte store that reacts to changes in hook state.
  • React components inside Svelte: Import React components directly into Svelte files using the "?in-svelte" query, enabling the passing of props and events as if they were Svelte components.
  • Svelte components inside React: Incorporate Svelte components into React applications by importing them using the "?in-react" query, allowing for the passage of props, children, and events as though they were React components.

Summary

Sveltris provides a bridge between the Svelte and React frameworks, allowing developers to combine the best features of each without the need for extensive rewrites. By enabling the integration of hooks, components, and state primitives across frameworks, Sveltris offers flexibility and versatility in application development.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.