LottieFiles / dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
191 stars 11 forks source link

Improve maintainability and feature parity between dotlottie-web components wrappers #275

Open theashraf opened 4 months ago

theashraf commented 4 months ago

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:

github-actions[bot] commented 2 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.

github-actions[bot] commented 2 weeks 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.