@aemforms/af-react-renderer

中文文档
1.0.11发布于 2026/11/01Adobe ProprietaryTypeScriptCommonJS近 30 天下载 3036

React Hooks to add business logic to React Components

原始使用文档
文档目录3 节
  1. Using Adaptive Form React Renderer
  2. Usage
  3. License

@aemforms/af-react-renderer

React Based renderer for Adaptive Form Headless Definition.

Using Adaptive Form React Renderer

To use adaptive form react renderer, add the following dependency,

npm i --save @aemforms/af-core @aemforms/af-react-components @adobe/react-spectrum

Usage

import {mappings} from '@aemforms/af-react-components'
import { Provider as Spectrum3Provider, defaultTheme } from '@adobe/react-spectrum'
const json = {...}
<SpectrumProvider theme={defaultTheme}>
<AdaptiveForm mappings={mappings} formJson={json} />
</SpectrumProvider>

License

Copyright 2022 Adobe All Rights Reserved.

NOTICE: All information contained herein is, and remains the property of Adobe and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Adobe and its suppliers and are protected by all applicable intellectual property laws, including trade secret and copyright laws. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Adobe.

Adobe permits you to use and modify this file solely in accordance with the terms of the Adobe license agreement accompanying it.

版本与发布记录

@aemforms/af-react-renderer 共发布 176 个版本,首次发布于 2022/06/16;过去 12 个月发布了 27 个版本。

版本发布日期距今
1.0.11latest2026/11/016 天前
1.0.102026/10/2315 天前
1.0.92026/10/051 个月前
1.0.82026/10/051 个月前
1.0.72026/10/021 个月前
1.0.62026/10/011 个月前

关于 @aemforms/af-react-renderer 的常见问题

@aemforms/af-react-renderer 是什么?

React Hooks to add business logic to React Components

如何安装 @aemforms/af-react-renderer?

在项目目录运行 npm install @aemforms/af-react-renderer,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(16.14.0 - 18)、react-dom(16.14.0 - 18)、react-intl(^5.8.4)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@aemforms/af-react-renderer 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@aemforms/af-react-renderer 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aemforms/af-react-renderer 可以商用吗?

@aemforms/af-react-renderer 使用 Adobe Proprietary 许可。声明的许可为 Adobe Proprietary,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@aemforms/af-react-renderer 的下载量有多少?

根据 npm 官方下载统计,@aemforms/af-react-renderer 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,036 次,日均约 101 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aemforms/af-react-renderer 还在维护吗?

最新版本 1.0.11 发布于 2026/11/01(6 天前);至今共发布 176 个版本,其中过去 12 个月发布了 27 个;首次发布于 2022/06/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。