gutenberg-docs/docs/reference-guides/interactivity-api/core-concepts
2026-03-27 01:08:43 +08:00
..
client-side-navigation.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
README.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
server-side-rendering.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
the-reactive-and-declarative-mindset.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
understanding-global-state-local-context-derived-state-and-config.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00
using-typescript.md docs: add 183 translated files 2026-03-27 01:08:43 +08:00

title post_status comment_status taxonomy
核心概念 publish open
category post_tag
gutenberg-docs
Core Concepts
Interactivity Api
Reference Guides

核心概念

本节提供与交互性 API 开发相关的重要概念和思维模型指南。通过以下链接了解更多:

  1. 响应式与声明式思维: 本指南涵盖响应式和声明式的核心概念,为有效使用交互性 API 奠定基础。

  2. 理解全局状态、局部上下文、派生状态和配置: 本指南解释如何在交互性 API 中有效使用全局状态、局部上下文和派生状态,强调根据数据范围和要求选择适当状态管理技术的重要性。

  3. 服务端渲染:在服务器上处理指令: 交互性 API 允许 WordPress 使用服务端渲染来创建交互式且具备状态感知的 HTML与客户端功能无缝连接同时保持性能和 SEO 优势。

  4. 使用 TypeScript: 本指南将引导您了解在交互性 API 存储中使用 TypeScript 的过程,涵盖从基本类型定义到处理复杂存储结构的高级技术。

  5. 客户端导航: 本指南解释如何使用 @wordpress/interactivity-router 包实现客户端导航,通过仅更新页面中变化的部分来实现更快的页面切换。