0

这是我的问题

在 React 16.3 中构建 React 组件库并使用React.Fragments.

遗憾的是,这需要支持几个不同的 React 站点,包括一个包含 React 的站点15.4.1

当尝试使用React.Fragment甚至在 babel、minification 等之后我得到的组件时

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

有没有办法在不更新旧站点反应版本的情况下支持这个用例?

4

0 回答 0