News for hackers. Stuff that matters.
Re:React best practices by cam-perry on Monday May 03, 2021 @05:56PM (#27031280)
Agreed, I would have a component like <CommentDeleteButton /> render a normal <Button /> by default without these different iconProps/buttonProps/dropdownItemProps.

Then give a renderButton prop to override the Button and use whatever <Icon />, <Dropdown.Item /> you want when you are using the <CommentDeleteButton />.

There are no comments on this comment yet.