DEV Community


Discussion on: Creating React Components - different syntaxes

chaituknag profile image
Naga Chaitanya Konada Author

Very good.

I think one more reason why export default function approach might not be preferred is when you write propTypes and defaultProps. Because these require the name of the function to assign those types.

dance2die profile image
Sung M. Kim

That's actually a good reason.