facebook/prop-types

React Portals can't be validated with prop-types

Open

#167 建立於 2018年3月1日

在 GitHub 查看
 (4 留言) (17 反應) (0 負責人)JavaScript (4,379 star) (389 fork)batch import
bughelp wanted

描述

PropTypes.node is not accepting element, created by React.createPortal as valid

Is it possible to treat element created by React.createPortal as iterator over it's children or treat portal itself as valid node?

貢獻者指南

React Portals can't be validated with prop-types · facebook/prop-types#167 | Good First Issue