Vidact: A Compiler That Turns React into Direct DOM Operations
Vidact – a compiler that turns React into direct DOM operations
Vidact compiles React function components and hooks into direct DOM operations, eliminating the Virtual DOM, re-renders, and React from the bundle. It analyzes expressions at compile time, mounts components once, and surgically updates only the parts that read changed state. Vidact Start extends this with file routes, server loaders, SSR, hydration, and client navigation, ensuring server and browser output match by construction.
A state write runs only the updaters that read it: a text node, an attribute, a list row.
- mg1c
Not sure what this project is for... the only way to statically compile JSX into direct DOM mutations is to either castrate React's dynamic runtime flexibility and closure model, or break its semantics like SolidJS does (in this case worse because the lack of templating/syntax constraints just shifts the burden from the compiler to the developer).
- didgeoridoo
If I’m understanding this right, you’re aiming at something like Svelte, but with React syntax?
- LoganDark
Please don't use LLMs for landing pages. Regardless of how long you've been developing the project, many people base their first impressions on whether a real person curated the documentation and website. And if you didn't, then they might never even get to evaluating your code at all.