DEV Community

christine kinahan
christine kinahan

Posted on

Web Component Considerations

Building our Card
For our second project, we are tasked with creating a card. In this card, we are using multiple web elements. To separate our elements in order to give them the attention they need, we broke them into different files. For example, our files in our src folder include CardBody.js,CardHeader.js,and CardIcon.js. This makes it easy to go in and style each element without getting "lost in the sauce".

What's Difficult
We were having difficulty with getting each separate element to show into one cohesive card, but we did figure that out over time with more messing around. It is definitely more manageable after having practiced and developed our button in a previous project.

Top comments (0)