📅  最后修改于: 2022-03-11 15:02:08.802000             🧑  作者: Mango
import PropTypes from 'prop-types'
...
static propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]).isRequired
}