니꼬 강의를 듣다가 적어둔다.
...
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]),
...
출처:
https://nomadcoders.co/react-for-beginners/lectures/521
https://github.com/yannickcr/eslint-plugin-react/issues/7#issuecomment-90294004