mitosis

BuilderIO / mitosis

一次编写组件,即可编译输出到 React、Vue、Qwik、Solid、Angular、Svelte 等框架,解决多框架组件重复开发的问题。

TypeScript Web 开发 开发工具 多框架支持 代码生成 前端组件 跨框架

为什么值得看

编辑点评

对组件库作者和需要维护多套前端框架项目的团队非常实用,能以单一代码源生成多种框架版本,大幅降低重复维护成本。基于 TypeScript 和 JSX,心智模型简单,但生成的代码可能包含框架特有细节,需要一定调试成本。适合追求高效跨框架交付的场景,不适合对每个框架性能极致定制化的项目。

Star 趋势

近 7 日
  • Star 总数14,390
  • 今日新增+3
  • 7 日增速0%
  • Fork672

同类项目

同场景 · Web 开发 / 开发工具

项目文档

来自 GitHub README · main 分支

Write components once, compile to every framework

Overview

Mitosis provides a unified development experience across all frameworks, enabling you to build components in a single codebase and compile them to React, Vue, Angular, Svelte, Solid, Alpine, Qwik, and more.

Using Mitosis, you can:

PS: We are actively looking for folks interested in becoming contributors to Mitosis. If interested, look at our list of good first issues or reach out on our Discord

Gif example of devloping with Mitosis

Quickstart

To create a new Mitosis project from scratch, run the following create command:

npm create @builder.io/mitosis@latest

Once completed, make sure to read the README.md generated in your new project. It will explain the structure of your project, and provide a walkthrough on how to build/test your components.

Read the full getting started docs for more.

Integration with Figma

To make generating Mitosis components easier, as well as to keep your design system in code in sync with your design system in Figma, Mitosis integrates with Figma.

Learn more about our Figma integration.

Demo of using Mitosis with Figma

Resources

Contribute

Interested in contribute? Head over to the CONTRIBUTING docs and see how you can get setup & started!

Once you're ready, checkout our issues page and grab your first issue!

文档抓取自 GitHub 仓库 README,版权归原作者所有;已过滤徽章等噪音并经安全消毒后展示。