javascript - Is it possible to "loosely" define an object using React.PropTypes.shape? -
using react.proptypes.shape possible object must have fields x,y,z, can have many arbitrary other fields likes?
i ensure object has @ least few required fields, want user able pass in number of additional key/values object well.
you can add many fields want. react.proptypes.shape
not care additional unspecified fields.
Comments
Post a Comment