Hacker News new | ask | show | jobs
by mikeycgto 3223 days ago
That's why there's PropTypes so you can define what type a given prop should be. An error is raised if a higher level component passes in a prop of an incorrect type.