Solid(solidjs/solid)

solidjs/solid 是一个用 TypeScript 编写、主打细粒度响应式的 UI 构建库。适合追求高性能渲染且不需要虚拟 DOM 的开发者。

36.4k · TypeScript

直接从 npm 引入 solid-js 就能省去虚拟 DOM 的开销,换来直接的响应式更新。虽然必须全盘接受它基于代理的生态和 JSX 风味,但能拿到极快的 DOM 变更性能。

README 摘录

<p> <img src="https://assets.solidjs.com/banner?project=Library&type=core&version=2.0" alt="SolidJS" /> </p> [![Build Status](https://img.shields.io/github/actions/workflow/status/solidjs/solid/main-ci.yml?branch=main&logo=github&style=for-the-badge)](https://github.com/solidjs/solid/actions/workflows/main-ci.yml) [![Coverage Status](https://img.shields.io/coveralls/github/solidjs/solid.svg?style=for-the-badge)](https://coveralls.io/github/solidjs/solid?branch=main) [![NPM Version](https://img.shields.io/npm/v/solid-js.svg?style=for-the-badge)](https://www.npmjs.com/package/solid-js) [![](https://img.shields.io/npm/dm/solid-js.svg?style=for-the-badge)](https://www.npmjs.com/package/solid-js) [![Discord](https://img.shields.io/discord/722131463138705510?style=for-the-badge)](https://discord.com/invite/solidjs) [![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/solidjs?style=for-the-badge)](https://www.reddit.com/r/solidjs/) **[Website](https://www.solidjs.com/) • [Docs](https://docs.solidjs.com/) • [Tutorial](https://docs.solidjs.com/tutorial) • [Playground](https://playground.solidjs.com/) • [Discord](https://discord.com/invite/solidjs)** Solid is a declarative JavaScript library for building user interfaces. Instead of a Virtual DOM, it compiles templates to real DOM nodes and updates them with fine-grained reactivity. Declare your state and use it throughout your app — when a piece of state changes, only the code that depends on it re-runs. ## At

GitHub