Closed lukaszpolowczyk closed 4 years ago
Vidact compiles your React source code to VanillaJS code with No Virtual DOM ™️. It is similar to Svelte , but unlike Svelte, Vidact does not introduce a new syntax.
Svelte is based neither on React's source code nor on the jsx syntax
@pushkine But it has a common idea for an alternative to Virtual DOM.
"Vidact compiles your React source codes to VanillaJS code with No Virtual DOM tm. It is similar to Svelte, but unlike Svelte, Vidact does not introduce a new syntax. It takes in pure React-compatible JavaScript (JSX) and outputs plain JavaScript."
If you want a framework which takes Svelte's ideas like the compiler focused architecture and also uses JSX syntax, have a look at Solid; https://github.com/ryansolid/solid.
Writing and maintaining some kind of intermittent transpiler for React-like components to Svelte components would be a gigantic task. You're better off using Solid or migrating your project to Svelte.
@MaxMilton Rather, I want to write in svelte but have access to existing databases of components written in JSX.
The joint part would be Precision DOM, without vDOM, and it should work at this level.
JSX should be adapted on the fly to the svelte solutions.
If someone wants to explore compiling JSX to standalone JS using Vidact, and then using that within Svelte components, they are of course free to do so. But, especially given the status of Vidact (alpha, and not ready for production), this really doesn't sound like something the core maintainers want to spend time on.
Vidact compiles your React source codes to VanillaJS code with No Virtual DOM.
It has the only other source files. vidact - JSX to Precision DOM svelte.dev - svelte file to Precision DOM
What do you think?
I assume that in theory they should have a lot in common. If they don't have it yet, it probably results only from not working out some ideas.