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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.