We’ve developed a simple rule of thumb to follow on this question;
“Don’t. Use. Bloody. PropTypes. They’re just annoying.”
Why do people use PropTypes?
It doesn’t. If you want a typed language for some reason, use typescript. There’s a time & a place for PropTypes. The time is in the past and the place is in the bin.
Why NOT to use them?
They cause crashing errors all the damn time, bloat your code and generally put barriers in the way of clarity and efficiency. If PropTypes are helping you, you should look at how you’re developing.
Learn more about what PropType means from the horses mouth (reactjs.org)