logoalt Hacker News

404humantoday at 2:19 AM5 repliesview on HN

So is Solid kind of like React but easier to use?


Replies

dsegotoday at 11:03 AM

From my modest understanding it turns how you use hooks on its head. React will run the functional component to render each time state updates, and you need hooks to cache and sync things (eg useCallback, useMemo, useEffect). Solid is the opposite I think, it executes only once, and you use hooks to set up bindings which run updates on the component.

ethan_smithtoday at 3:01 AM

Solid is fundamentally different from React - it compiles reactive primitives to direct DOM updates with no virtual DOM or re-rendering, whereas React re-renders components when state changes.

voattoday at 2:22 AM

Solid js does basically the same thing as React (building UIs for websites) but the architecture and primitives are slightly different.

stevagetoday at 3:47 AM

That has been my experience.

gawrkura00today at 6:35 AM

[dead]