DEV Community

Discussion on: React components composition: how to get it right

Collapse
 
adevnadia profile image
Nadia Makarevich

Hi @gabrielmlinassi ,

In Jira they use Atlaskit - Atlassian components library. That one: atlassian.design/components/modal-...

As for other composition patterns: you might be interested in this article: developerway.com/posts/react-compo..., I cover render props in detail there.

And this one for custom hooks:
developerway.com/posts/why-custom-..., it covers exactly the usecase of returning a component (Modal) from a hook. In short - not a good idea, prone to bugs and performance issues.