DEV Community

Alex Spinov
Alex Spinov

Posted on

Solid.js Has a Free API You Should Know About

Solid.js is a reactive JavaScript framework that delivers React-like DX with truly reactive primitives — no virtual DOM, no re-renders, just surgical DOM updates.

Why Solid.js Outperforms React

A team had a data-heavy dashboard in React that stuttered on every update — re-rendering 500+ components on each state change. They rewrote it in Solid.js. Same codebase structure, but updates were instant — Solid only touches the exact DOM nodes that changed.

Key Features:

  • Fine-Grained Reactivity — No virtual DOM diffing
  • Familiar JSX — React-like syntax, different execution model
  • Tiny Bundle — ~7KB gzipped
  • No Re-Renders — Components run once, only signals update
  • Compiled — Optimized at build time

Quick Start

npx degit solidjs/templates/ts my-app
cd my-app && npm install && npm run dev
Enter fullscreen mode Exit fullscreen mode

Signals (State)

import { createSignal } from "solid-js"

function Counter() {
  const [count, setCount] = createSignal(0)

  return (
    <button onClick={() => setCount(count() + 1)}>
      Count: {count()}
    </button>
  )
}
Enter fullscreen mode Exit fullscreen mode

Derived State

const [firstName, setFirstName] = createSignal("John")
const [lastName, setLastName] = createSignal("Doe")
const fullName = () => `${firstName()} ${lastName()}` // Automatically reactive!
Enter fullscreen mode Exit fullscreen mode

Why Choose Solid.js

  1. Best-in-class performance — fastest framework in JS Framework Benchmark
  2. React-like DX — easy migration path
  3. True reactivity — predictable, efficient updates

Check out Solid.js docs to get started.


Building high-performance apps? Check out my Apify actors or email spinov001@gmail.com for custom solutions.

Top comments (0)