DEV Community

Discussion on: Creating React Components - different syntaxes

Collapse
 
chaituknag profile image
Naga Chaitanya Konada

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.

Collapse
 
dance2die profile image
Sung M. Kim

That's actually a good reason.