talira

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.

  1. React The library for web and native user interfaces
  2. Preact Fast 3kB alternative to React with the same modern API
  3. Svelte Web development for the rest of us
  4. Vue.js The Progressive JavaScript Framework
  5. Qwik Deliver instant apps at scale
  6. Lit Simple. Fast. Web Components.

Compare SolidJS with the top 3