Levelling Up with React PropTypes

Tricks and tips to take your type checking to the next level.

Malcolm Laing
Nov 6 · 3 min read
Photo by Scott Blake on Unsplash

For React developers who haven’t jumped on the TypeScript train, PropTypes are a way of life. We use them daily to add run-time type checking to our React components.

But most of us only use built-in PropTypes like string or number. What more can we do with PropTypes? How can…

Malcolm Laing

Written by

Front End Engineer in Berlin. Loves React, building component libraries, module bundling, and testing.

Frontend Digest

Anything and everything frontend. JavaScript, CSS and HTML.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade