REACT : "custom validator" for String Props
Prop-types is a library that allows to introduce some validation on the props we pass to React components.
It works only in development mode , writing warning/errors in the console when a prop passed to a component is not valid, allowing us to disc...
papidev.hashnode.dev3 min read