--

You know you can inline your single prop into the same line as the function component definition, right?

This React.FC pattern with named prop types has to go; it's awful.

--

--

Dr. Derek Austin šŸ„³
Dr. Derek Austin šŸ„³

Written by Dr. Derek Austin šŸ„³

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet