DEV Community

Cover image for Dynamic components – is it worth it?

Dynamic components – is it worth it?

Caio Marcellus Cabral on February 06, 2024

A wild problem appears During a project I stumbled over a problem – like we always do, right? I had a component in Astro that returned ...
Collapse
 
sucodelarangela profile image
Angela Caldas

Great article, Caio! Sometimes it's just not worth it creating a component when their props and attributes are so different, even though the UI looks almost the same. It may make sense to you, the developer who is working on the project, but when you need third parties in your project, it may seem incredibly confusing for them.

Collapse
 
jdtjenkins profile image
jdtjenkins

A very thorough writeup of the pros and cons of dynamic components! They are incredibly tricky if you're trying to fit every single solution. But can work very well when just trying to do very specific things!