Replies: 5 comments 6 replies
-
Please do this; I am trying to decide between MitosisJSX and Sveltosis, but I do not know what compatibility issues Sveltosis might have compared to standard Svelte. |
Beta Was this translation helpful? Give feedback.
-
Hey @tomByrer: you're right, we haven't added any docs about Sveltosis yet, besides the examples in https://mitosois.builder.io/ under the Sveltosis tab. I know Mitosis' docs are way behind its functionality, and we're trying to play catch up 😅 In general, the JSX syntax has much more feature coverage, as the Sveltosis syntax is still new. Your best bet is to use the fiddle to try different things and see what works. |
Beta Was this translation helpful? Give feedback.
-
The Sveltosis tab in https://mitosois.builder.io/ seems broken (none of the templates are generating output). I opened #1327 for it. |
Beta Was this translation helpful? Give feedback.
-
This just struck me and it's awesome. I am following BuilderIO a little and liked the idea of a JSX superset, but my personal turn-off is React (I'm not a fan of hooks). Svelte on the other hand has such a better way to solve things (in my opinion), but never had the ecosystem. The reason it "strucks" me is, I was giving up on Expo and ReactNative for having React as hard dependency. I wonder what would happen if you throw misosis into the mix. Could it really be possible to build ReactNative components with Svelte? This sounds like a huge deal, but also huge compile times. I would absolutely start to experiment with this, if I had more time available. Maybe some day, maybe someone else does this in the meantime. Please let me know. Have a nice day! :) |
Beta Was this translation helpful? Give feedback.
-
My comment from Jan 9 has been fixed and https://mitosis.builder.io/playground is working well now, so you can use that to quickly check if the Svelte code that you have in mind gets successfully converted to ReactNative code. For very simple Svelte code, this might work. Mitosis/Sveltosis still seems fairly early stage and unlikely to be able to handle more complex Svelte code (e.g., the kind that you would need hooks for in React). |
Beta Was this translation helpful? Give feedback.
-
Seems there has been stealth-addition to Mitosis that allows Sveltosis (Svelte syntax) as input, at least in the demo.
Fortunately there are many examples.
Unfortunately there is not 1:1 of the same examples in JSX, nor is there any documentation.
Could someone help improve onboarding improvements, eg document Sveltosis a bit better (at least Sveltosis vs Svelte & JSX) please?
Beta Was this translation helpful? Give feedback.
All reactions