top | item 43768118

(no title)

404human | 10 months ago

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

discuss

order

dsego|10 months ago

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_smith|10 months ago

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.

voat|10 months ago

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

stevage|10 months ago

That has been my experience.