Open theashraf opened 4 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
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: