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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -