facebook/prop-types

React Portals can't be validated with prop-types

Aperta

#167 aperta il 1 mar 2018

 (4 commenti) (17 reazioni) (0 assegnatari)JavaScript (389 fork)batch import
bughelp wanted

Metriche repository

Star
 (4379 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor