A functional approach to className management in ReactJS, Part I
In the not-so-old days, before the “Virtual DOM” and external html templates, we use to do directly manipulate the DOM referencing the node and adding or removing classes from the element `classList`; usually using some…