calblueprint / alemany

1 stars 0 forks source link

More specific prop types #74

Open kbrgl opened 2 years ago

kbrgl commented 2 years ago

array is not a specific enough type of PropType. In the future we should create a Tree type and use it here to define data as PropTypes.arrayOf(Tree).

Example of how to set type as arrayOf in PropTypes https://www.codegrepper.com/code-examples/whatever/proptypes+array+of+objects

Originally posted by @GuessingMan in https://github.com/calblueprint/alemany/pull/68#r820332834