在 React JS 中使用试剂组件的最佳方式是什么?

What is the best way to use a reagent component in react js?

假设我有一个试剂 class 和 :reagent-render 其他试剂 class/element,我如何转换它并导出为可以安装到常规 React 应用程序的常规 React 组件?

根据您使用的 Reagent 版本,它可能会有所不同。如果您使用 0.5+,请查看 reagent.core/as-element,记录在 0.5.0 News under Simple React Integration. If using 0.6+, the output of reagent.core/create-class can be used in JSX directly, as documented in the 0.6.0 Alpha News.