"You must set either a height or a maxHeight" FixedDataTable 组件出错

"You must set either a height or a maxHeight" error with FixedDataTable Component

我遇到错误:

Uncaught Error: Invariant Violation: You must set either a height or a maxHeight

这是什么意思?

这是堆栈:

invariant @ invariant.js:39
_calculateState @ FixedDataTable.react.js:669
getInitialState @ FixedDataTable.react.js:305
ReactClass.createClass.Constructor @ ReactClass.js:853
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:135
ReactPerf.measure.wrapper @ ReactPerf.js:70
ReactReconciler.mountComponent @ ReactReconciler.js:38
ReactCompositeComponentMixin.mountComponent @ ReactCompositeComponent.js:247
ReactPerf.measure.wrapper @ ReactPerf.js:70
ReactReconciler.mountComponent @ ReactReconciler.js:38
ReactMultiChild.Mixin.mountChildren @ ReactMultiChild.js:192
ReactDOMComponent.Mixin._createContentMarkup @ ReactDOMComponent.js:289

我想做的就是从这个example here.

我的猜测是您没有传递 tableHeight 道具,但如果不查看您的组件代码就很难判断。