prop-types
prop-types copied to clipboard
Is there a way to get the list of warnings as an object?
I want to use prop-types to validate some object. And based on the validations result set, I want to take some actions. PropTypes.checkPropTypes
seems to be a nice fit but it throws warning, which isn't exactly what I'm looking for. Can I've some clue how to achieve that?