BuilderIO / mitosis
Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
Write components once, compile to every framework
Try our interactive fiddle
Table of contents
- Quick Start Guide
- Examples
- What is Mitosis
- In-depth Docs
- Why use Mitosis?
- Contribute
- Community
- Related Projects
Quick Start Guide
Install
npm install @builder.io/mitosis-cli @builder.io/mitosis
Setup mitosis.config.js
module.exports = {
files: 'src/**',
targets: ['vue3', 'solid', 'svelte', 'react'],
};
Check our configuration docs for how to setup the Mitosis config file.
Setup TypeScript
// tsconfig.json
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "@builder.io/mitosis"
}
}
Install ESLint Rules
Install our ESLint plugin to have highly useful rules that guide you as you build your Mitosis components.
Top comments (0)