【发布时间】:2018-07-18 16:21:51
【问题描述】:
我正在使用 react-beautiful-dnd 版本 8.0.5(最新)并尝试呈现可重组的列表,但我不断收到此错误:
Warning: React.createElement: type is invalid -- expected a string (for
built-in components) or a class/function (for composite components) but
got: undefined. You likely forgot to export your component from the file
it's defined in. Check the render method of `DragHandle`.
我从this example 复制了部分代码。我目前使用 react-redux、Formik 的 HOC 和 react-virtualized-select。当我将代码复制到codesandbox example 时,它至少会呈现(我猜是有问题)。有谁有想法吗?如果需要,我可以提供更多代码。
【问题讨论】:
-
你在项目中使用的是什么反应版本?
-
@Pintouch 15.6.1
标签: reactjs react-redux formik