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