4 ms·
So is Solid kind of like React but easier to use?
by 404human 1y ago
So is Solid kind of like React but easier to use?
- voat 1y agoSolid js does basically the same thing as React (building UIs for websites) but the architecture and primitives are slightly different.
- ethan_smith 1y agoSolid 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.
- stevage 1y agoThat has been my experience.
- gawrkura00 1y ago[dead]
- dsego 1y agoFrom 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.