DEV Community

loading...

Discussion on: Create a custom toggle component in Vue.js. 🎛

thepassle profile image
Pascal Schilp

Exactly — this may not be a full-fledged application, but if a new dev comes here, reads this, recreates this toggle with non-unique IDs, and reuse a bunch of that component on their page/app, they will end up with multiple non-unique IDs on their page. Its a bad practice, and a poor example for new developers.