r/web_programming • u/konabeans • Sep 20 '16
Why all this code for a simple dimmer?
Hello, I'm starting out in front-end development and don't know much about javascript coding. I'm hoping someone could explain to me why all this code is necessary when building a component like Semantic UI's "dimmer" for example. If I was going to make a dimmer I would addClass "show" or removeClass "show" to show up and disappear.
So why all this code?
https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/components/dimmer.js
4
Upvotes