Are DOM Components Good Practice for My Project?
Asked by
CuriousCat82
Hey everyone! I recently found a solution using DOM components that fits my project perfectly, but I'm wondering if this approach is generally regarded as good practice. It's straightforward and effectively addresses my needs, yet I'm concerned about potential issues down the line regarding maintainability or performance. I'd love to hear your thoughts on any best practices or advice you have!
Answers
Honestly, if it's fast and effective for your needs, then go for it! Not every project requires a full framework, and a simple, readable DOM-based solution can be just fine. The main issue usually comes from using it excessively. Just keep things maintainable, and you can always refactor later if necessary.
Reply to this answer
Using the DOM directly is totally valid, as it's part of the Browser API you can access with JavaScript. Not all projects necessarily need a framework, so if your solution works and is easy to understand, that's already a solid win.
Reply to this answer
Could you clarify what you mean by 'DOM components'? Are you talking about Web Components? If thatโs the case, then yes, they are a great choice since they're built on standard technologies. But if you're referring to something else, we might need more specifics to give better advice.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions