|
1 | 1 | --- |
2 | | -title: Libraries & Add-ons |
| 2 | +title: 库和扩展 |
| 3 | +description: '与 Preact 完美配合的库和扩展集合' |
3 | 4 | --- |
4 | 5 |
|
5 | | -# 库和插件 |
| 6 | +# 库和扩展 |
6 | 7 |
|
| 8 | +这是一个专为 Preact 构建的优秀模块集合。 |
7 | 9 |
|
8 | | -此页收集了一些 Preact 的库与插件. |
9 | | -> :information_desk_person: _构建一个你自己的库? |
10 | | -> [把它加到这里!](https://github.com/preactjs/preact-www/blob/master/content/zh/about/libraries-addons.md)_ |
| 10 | +> :information_desk_person: _构建了自己的库? |
| 11 | +> [添加它!](https://github.com/preactjs/preact-www/blob/master/content/en/about/libraries-addons.md)_ |
11 | 12 |
|
| 13 | +## 扩展 |
12 | 14 |
|
13 | | -### 插件(Add-Ons) |
| 15 | +- :repeat: [**preact-cycle**](https://github.com/developit/preact-cycle): Preact 的函数式响应式编程范式 |
| 16 | +- :page_facing_up: [**preact-render-to-string**](https://github.com/preactjs/preact-render-to-string): 通用渲染 |
| 17 | +- :timer_clock: [**relaks**](https://github.com/trambarhq/relaks): 创建具有异步返回渲染方法的组件。 |
| 18 | +- :nut_and_bolt: [**express-preact-views**](https://github.com/edwjusti/express-preact-views): Express 视图引擎 |
| 19 | +- :floppy_disk: [**Prefresh**](https://github.com/JoviDeCroock/prefresh): Preact 的快速刷新插件 |
| 20 | +- :bookmark_tabs: [**adonis-preact**](https://github.com/DonsWayo/adonis-preact): 在 Adonisjs 中使用 Preact |
14 | 21 |
|
15 | | -- :raised_hands: [**preact-compat**](https://github.com/preactjs/preact-compat): 让你可以在 Preact 下使用任何 react 的库 *([full example](https://github.com/developit/preact-compat-example))* |
16 | | -- :repeat: [**preact-cycle**](https://github.com/developit/preact-cycle): 基于 Preact 的小型 Vdom 渲染 |
17 | | -- :page_facing_up: [**preact-render-to-string**](https://github.com/preactjs/preact-render-to-string): 统一渲染 |
| 22 | +## 组件 |
18 | 23 |
|
| 24 | +- :earth_americas: [**preact-router**](https://github.com/preactjs/preact-router): 为您的组件提供 URL 路由 |
| 25 | +- :bookmark_tabs: [**preact-markup**](https://github.com/developit/preact-markup): 将 HTML 和自定义元素渲染为 JSX 和组件 |
| 26 | +- :satellite: [**preact-portal**](https://github.com/developit/preact-portal): 将 Preact 组件渲染到(一个)空间 :milky_way: |
| 27 | +- :pencil: [**preact-richtextarea**](https://github.com/developit/preact-richtextarea): 简单的 HTML 编辑器组件 |
| 28 | +- :bookmark: [**preact-token-input**](https://github.com/developit/preact-token-input): 将输入标记化的文本字段,用于标签等功能 |
| 29 | +- :card_index: [**preact-virtual-list**](https://github.com/developit/preact-virtual-list): 轻松渲染数百万行的列表 ([演示](https://jsfiddle.net/developit/qqan9pdo/)) |
| 30 | +- :triangular_ruler: [**preact-layout**](https://download.github.io/preact-layout/): 小巧简单的布局库 |
| 31 | +- :construction_worker: [**preact-helmet**](https://github.com/download/preact-helmet): Preact 的文档头管理器 |
| 32 | +- :arrow_up_down: [**preact-custom-scrollbars**](https://github.com/lucafalasco/preact-custom-scrollbars): 完全可定制的滚动条,提供无摩擦的原生浏览器滚动体验 |
| 33 | +- 🧱 [**@modular-forms/preact**](https://modularforms.dev/): 模块化和类型安全的表单库 |
19 | 34 |
|
20 | | -### 组件(Components) |
| 35 | +## 集成(Integrations) |
21 | 36 |
|
22 | | -- :earth_americas: [**preact-router**](https://github.com/preactjs/preact-router): 路由组件 |
23 | | -- :bookmark_tabs: [**preact-markup**](https://github.com/developit/preact-markup): 渲染组件或自定义元素(如 jsx)为 html |
24 | | -- :satellite: [**preact-portal**](https://github.com/developit/preact-portal): 渲染 Preact 组件到一个容器内(如 dom 元素):milky_way: |
25 | | -- :pencil: [**preact-richtextarea**](https://github.com/developit/preact-richtextarea): 简单版的 html 编辑器组件 |
26 | | -- :bookmark: [**preact-token-input**](https://github.com/developit/preact-token-input): 用于输入标签的文字框 |
27 | | -- :card_index: [**preact-virtual-list**](https://github.com/developit/preact-virtual-list): 可轻松渲染百万行数据到 list 中 ([demo](https://jsfiddle.net/developit/qqan9pdo/)) |
28 | | -- :triangular_ruler: [**preact-layout**](https://download.github.io/preact-layout/): 一款小而简单的布局库 |
| 37 | +- :thought_balloon: [**preact-socrates**](https://github.com/matthewmueller/preact-socrates): [Socrates](http://github.com/matthewmueller/socrates) 的 Preact 插件 |
| 38 | +- :rowboat: [**preact-flyd**](https://github.com/xialvjun/preact-flyd): 在 Preact + JSX 中使用 [flyd](https://github.com/paldepind/flyd) FRP 流 |
| 39 | +- :speech_balloon: [**preact-i18nline**](https://github.com/download/preact-i18nline): 通过 [i18nline](https://github.com/download/i18nline) 将 [i18n-js](https://github.com/everydayhero/i18n-js) 生态系统与 Preact 集成。 |
| 40 | +- :diamond_shape_with_a_dot_inside: [**Capacitor**](https://capacitorjs.com/solution/preact): 将您的 Preact 应用转换为原生 iOS/Android 应用和 PWA。 |
| 41 | +- :ice_cube: [**Kretes**](https://kretes.dev/docs/howtos/preact-setup/): 使用 Preact 和 Node.js 构建全栈 TypeScript 应用 |
| 42 | +- 🏝: [**preact-island**](https://github.com/mwood23/preact-island): 在任何网站上运行您的 Preact 小部件,具有响应式属性。 |
29 | 43 |
|
| 44 | +## GUI 工具包 |
30 | 45 |
|
31 | | -### 集成(Integrations) |
| 46 | +- 🎴 [**@mui/material**](https://github.com/mui/material-ui/tree/master/examples/material-ui-preact): 您一直想要的 React UI 库。遵循您自己的设计系统,或从 Material Design 开始。 |
| 47 | +- :thumbsup: [**preact-material-components**](https://github.com/prateekbh/preact-material-components): Web 的 Material Components(取代 MDL) |
| 48 | +- :white_square_button: [**preact-mdl**](https://github.com/developit/preact-mdl): 将 [MDL](https://getmdl.io) 用作 Preact 组件 |
| 49 | +- :rocket: [**preact-photon**](https://github.com/developit/preact-photon): 使用 [photon](http://photonkit.com) 构建美观的桌面 UI |
| 50 | +- :penguin: [**preact-weui**](https://github.com/afeiship/preact-weui): 适用于 Preact 的 [Weui](https://github.com/afeiship/preact-weui) |
| 51 | +- 💅 [**preact-fluid**](https://github.com/ajainvivek/preact-fluid): 适用于 Preact 的 [Fluid](https://github.com/ajainvivek/preact-fluid) 极简 UI 套件 |
| 52 | +- :book: [**storybook-preact**](https://github.com/storybooks/storybook/tree/next/app/preact): Storybook for Preact 是您的 Preact 组件UI 开发环境 |
32 | 53 |
|
33 | | -- :thought_balloon: [**preact-socrates**](https://github.com/matthewmueller/preact-socrates): 针对 [Socrates](https://github.com/matthewmueller/socrates) 的 Preact 插件(http://github.com/matthewmueller/socrates) |
34 | | -- :rowboat: [**preact-flyd**](https://github.com/xialvjun/preact-flyd): 在 Preact + jsx 上使用 [flyd](https://github.com/paldepind/flyd) FRP streams |
| 54 | +### 测试 |
35 | 55 |
|
| 56 | +- :microscope: [**preact-jsx-chai**](https://github.com/developit/preact-jsx-chai): JSX 断言测试 _(无需 DOM,直接在 Node 中运行)_ |
| 57 | +- :white_check_mark: [**unexpected-preact**](https://github.com/bruderstein/unexpected-preact): Jest 中的 JSX 断言、事件、快照 _(DOM,在 Node jsdom 下运行或在 Jest 中开箱即用)_ - [文档](https://bruderstein.github.io/unexpected-preact/) |
36 | 58 |
|
37 | | -### GUI 工具(GUI Toolkits) |
| 59 | +## 实用工具 |
38 | 60 |
|
39 | | -- :white_square_button: [**preact-mdl**](https://github.com/developit/preact-mdl): 使用 [MDL](https://getmdl.io) 制作 Preact 组件 |
40 | | -- :rocket: [**preact-photon**](https://github.com/developit/preact-photon): 基于 [photon](http://photonkit.com) 构建桌面 app |
41 | | - |
42 | | - |
43 | | -### 测试(Testing) |
44 | | - |
45 | | -- :microscope: [**preact-jsx-chai**](https://github.com/developit/preact-jsx-chai): jsx 断言测试 _(仅在 Node 下使用,不支持 DOM)_ |
46 | | - |
47 | | - |
48 | | -### 基础库(Utilities) |
49 | | - |
50 | | -- :tophat: [**preact-classless-component**](https://github.com/ld0rman/preact-classless-component): 不使用 class 关键字创建 preact 组件 |
51 | | -- :hammer: [**preact-hyperscript**](https://github.com/queckezz/preact-hyperscript): 使用 Hyperscript 的语法创建元素 |
52 | | -- :white_check_mark: [**shallow-compare**](https://github.com/tkh44/shallow-compare): 简单的 `shouldComponentUpdate` 帮助库,快速深度对比 |
| 61 | +- :tophat: [**preact-classless-component**](https://github.com/ld0rman/preact-classless-component): 无需使用 class 关键字即可创建 preact 组件 |
| 62 | +- :hammer: [**preact-hyperscript**](https://github.com/queckezz/preact-hyperscript): 用于创建元素的类 Hyperscript 语法 |
| 63 | +- :white_check_mark: [**shallow-compare**](https://github.com/tkh44/shallow-compare): 简化的 `shouldComponentUpdate` 辅助函数。 |
| 64 | +- :signal_strength: [**@deepsignal/preact**](https://github.com/EthanStandel/deepsignal/tree/main/packages/preact): `@preact/signals` 的扩展,用于完整的状态管理 |
0 commit comments