Write components once, run everywhere. Make svelte components run inside React or Vue applications.
Managing support for libraries that provide UI components across frameworks is a pain, especially when Web Component are not an option (e.g. for server side rendering, best performance, etc).
At present, the svelte framework is developing rapidly.
It is a good backward compatibility solution to make svelte components run in the old react
or vue
project,
especially when the team's technology stack is not unified, this provides an idea of cross-framework sharing component.
Adapters for react、vue2 and vue3
An all-in-one cli for quickly create svelte components
Svere
contains several adapters
for React/Vue2/Vue3
which allows you to pass props and respond to events in a way that makes sense for that library.
Also, it provides a cli to quickly create svelte components that can be shared across components.
Svere use the life cycle hooks of each framework to complete the mounting, updating and uninstalling of svelte components.
Focus on the writing of business components without caring about the user, which greatly improves the development efficiency
Solve the problem of sharing a single component between different technology stacks, and achieve a certain sense of environment independence
Only one piece of code is maintained, and the performance of components under different technology stacks can be guaranteed to be consistent