DEV Community

Discussion on: 4 Tips for Building Reusable and Shareable React Components

Collapse
 
trangcongthanh profile image
Thành Trang • Edited


const AComponent: React.FC<IProps> = (props : IProps) => {...}

You don't need (props : IProps) when use React.FC<IProps>.

Collapse
 
giteden profile image
Eden Ella

You are right but as I've mentioned in this post, bit.dev and react-docgen will not document these props unless they are written that way (and as it is a guide to shareable components, documentation is critical).