📜  `ForwardRef(ListboxComponent)`,需要一个 ReactNode.在 ListboxComponent - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:25.103000             🧑  作者: Mango

代码示例1
change:

ListboxComponent.propTypes = {
  children: PropTypes.node,
}

to:

ListboxComponent.propTypes = {
  children: PropTypes.array,
}