Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
/ cuddly-robot Public archive

POC running Astro importing Svelte & React components generated by Mitosis

License

Notifications You must be signed in to change notification settings

ninetails/cuddly-robot

Repository files navigation

Cuddly Robot

A monorepo with two packages, one is a component repository with just one component being exported using Mitosis. The other package is an Astro application importing a React and a Svelte component generated by Mitosis.

Installation

Just run at root

npm install

@ninetails-cuddly-robot/app-astro

Contains Astro app

Usage

To get development environment up, just run

cd packages/app-astro
npm run dev

You must have an exported component on @ninetails-cuddly-robot/components

@ninetails-cuddly-robot/components

Just made a Hello World component inside src/MyComponent.lite.tsx copied from Mitosis website.

Usage

To export a component, just run

cd packages/components
npm exec mitosis build

License

MIT