Hacker News new | ask | show | jobs
by frfl 873 days ago
I haven't used React in a while and never used SolidJS, but would SolidJS not basically be a optimizing compiler as well for "React". Technically SolidJS is a separate framework and I don't know if it's a 100% drop in replacement like this make be.

Edit: My comment is probably not accurate. Please ignore what I said.

1 comments

SolidJS and React are on the opposite ends of the JS framework worlds.

Solid doesn't use a virtual DOM like React. Solid is close to Svelte, Vue is in the middle more leaning towards Solid and Svelte today and eventually will be with Svelte and Solid when Vapor comes out and then React is on the other end.

Solid and React do feels similar to the developer because they both use JSX and similar APIs but they aren't compatible.

Yeah, I meant "optimizing compiler" in the sense it takes in JSX and outputs optimized code
Solid doesn’t have a compiler as I recall? (Other than JSX)
Sorry my mistake. I misunderstood Solid as working same as Svelte with a compiler.
I also understood it like that, and the FAQ seems to imply that it is.

https://www.solidjs.com/guides/faq

> We have a compiler working for you to give you optimal native DOM updates, but you have all the freedom of a library like React.