Awesome
Learning Mitosis
Just one of the things I'm learning. https://github.com/hchiam/learning
Write components in an intermediate representation that can be compiled to many frameworks (e.g. angular, qwik, react, solid, svelte, vue2, vue3).
https://github.com/BuilderIO/mitosis
npm install @builder.io/mitosis-cli @builder.io/mitosis
then set up mitosis.config.js to specify the target output frameworks:
module.exports = {
files: "src/**",
targets: ["vue3", "solid", "svelte", "react"],
};
and maybe tsconfig.json:
{
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "@builder.io/mitosis"
}
}
and then finally to generate code for the target frameworks:
npm exec mitosis build
And finally use the files in the /output
folder.