Coding at Dawn
Published in

Coding at Dawn

5 Reasons I Always Prefer Default Exports in React TypeScript Projects

It’s your choice to use default exports or named exports, but here’s why I always prefer default exports in my React TSX.

A lot of developers seem to prefer “named exports,” where you list everything in curly brackets {}, but I think default exports are better.

--

--

Laid-back programming + relaxing photography

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dr. Derek Austin 🥳

I love working with Next.js + Tailwind CSS ♦ Lead Frontend Developer ♦ React Software Engineer ♦ SEO & Web Performance Expert ♦ I love accessible websites