Fine-grained reactive UI
open sourceMITfree
SolidJS (Solid) is a JavaScript library, an alternative to React, for building user interfaces with fine-grained reactivity and no virtual DOM: components run once, and signals update exactly the DOM nodes that read them, so there are no re-renders, memoization or dependency arrays. Solid 2.0 makes async part of the reactive graph (a memo can return a promise, with Loading and Errored boundaries and isPending for refreshes), keeps the old content on screen until new data is ready, and turns mutations wrapped in actions into optimistic updates with draft-first stores. It uses JSX, and a new project starts with npm create solid.
Problems it solves
- a fast UI library without virtual DOM re-renders
- reactive components with signals instead of React hooks
- build a web UI where only the changed DOM nodes update
- handle async data loading in UI components without loading flags
Features
- fine-grained reactivity with signals
- no virtual DOM, components run once
- async built into the reactive graph
- optimistic actions and draft-first stores
- JSX
Alternatives
The same job
These do what SolidJS does.