You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background:
dotLottie-web is a JavaScript library that includes several packages in a monorepo, which wrap its APIs into neat component packages for various frameworks such as React, Vue, Solid, Svelte, and WebComponent. As the number of these wrappers has increased, maintaining them has become increasingly challenging. Initially, we only supported Web Component, Vue, and React. Now, we have added Solid and Svelte, with the potential for more in the future.
Problem:
The maintenance burden grows as we expand the number of wrappers. Each new framework requires us to manually implement and update components, which is time-consuming and prone to inconsistencies.
Proposed Solution:
We can utilize Mitosis to overcome this maintenance burden. Mitosis provides a unified development experience across all frameworks, allowing us to build components in a single codebase and compile them to React, Vue, Angular, Svelte, Solid, Alpine, Qwik, and more.
Approach:
Develop an internal package in the monorepo for the base Mitosis component. This component package will serve as the single source of truth for all framework-specific components
Compile the base component to the target frameworks/libraries we support (react/vue/svelte/solid/wc)
Use Mitosis overrides to add any necessary customizations specific to each framework
Ensure that the components' APIs remain backward compatible and do not introduce any regressions during this migration process
Considerations:
The migration to Mitosis should be gradual, ensuring that each component is thoroughly tested before replacing the existing implementation.
Next Steps:
Evaluate the feasibility of integrating Mitosis into our current build process
Background:
dotLottie-web is a JavaScript library that includes several packages in a monorepo, which wrap its APIs into neat component packages for various frameworks such as React, Vue, Solid, Svelte, and WebComponent. As the number of these wrappers has increased, maintaining them has become increasingly challenging. Initially, we only supported Web Component, Vue, and React. Now, we have added Solid and Svelte, with the potential for more in the future.
Problem:
The maintenance burden grows as we expand the number of wrappers. Each new framework requires us to manually implement and update components, which is time-consuming and prone to inconsistencies.
Proposed Solution:
We can utilize Mitosis to overcome this maintenance burden. Mitosis provides a unified development experience across all frameworks, allowing us to build components in a single codebase and compile them to React, Vue, Angular, Svelte, Solid, Alpine, Qwik, and more.
Approach:
Considerations:
The migration to Mitosis should be gradual, ensuring that each component is thoroughly tested before replacing the existing implementation.
Next Steps:
The text was updated successfully, but these errors were encountered: