SolidJS in 59 Seconds

A JavaScript library for building interactive user interfaces

SolidJS docs ↗

What

JSX

Mix HTML-like markup with JavaScript values.

export function Greeting(props) {
  return (
    <p>Hello, {props.name}!</p>
  )
}

Components

Build one component, then reuse it with different props.

Signals

Store changing values with a getter and setter.

Built-in APIs

<Show>
Show content conditionally.
<For>
Render a list of items.
createResource
Load async data.
createContext
Share values across components.

Why

Less repeated work

Change state. Update only the parts of your interface that depend on it.

No virtual DOM

Change the real DOM directly, without comparing a virtual copy.

Small runtime

Keep unused framework code out of your bundle.

~7 kBMinified + gzippedSolidJS website ↗

Responsiveness

Use focused updates to help keep typing and clicks responsive.