如何将 Autodesk Forge Viewer Extensions 添加到 React?

How to add Autodesk Forge Viewer Extensions to React?

我想将我的 Autodesk forge 查看器扩展添加到 React。这可能吗?我该怎么做? 现在我有一个在 React 中工作的查看器,但扩展仍然使用纯 js。

https://forge-rcdb.autodesk.io/ 使用 React 构建,它有许多 forge 查看器扩展。

Github 回购:https://github.com/Autodesk-Forge/forge-rcdb.nodejs

下面是在 React 项目中加载 Forge 查看器扩展的示例: https://github.com/Autodesk-Forge/forge-rcdb.nodejs/blob/89e2e0af1d87e3b948cb66bc88f54140c6e8a0e8/src/client/components/Viewer/Viewer.Configurator/Viewer.Configurator.js#L871