A Case for PropTypes
▻https://hackernoon.com/a-case-for-proptypes-9dc42e1df72?source=rss----3a8144eabfe3---4
A human typing on a typewriter, probably very strongly… ok I am done with the puns. Photo by rawpixel.com from PexelsHere is a definition of data type, commonly referred as type:> A data type is a classification of the type of data that a variable or object can hold in computer programming.Most programming languages I encountered in school were strictly typed. Meaning that if you defined that variable as type string, it will be a string and nothing else. Unlike #javascript where you don’t have to decide if a variable should be a boolean or a string, you can just change it at any time, or the interpreter will do so for you (see lightning talk WAT)If you think about it, when you create a variable and call it isRed you sort of made a binding contract with yourself that it will return a (...)