Check out example codes for "javascript remoev css class". It will help you in understanding the concepts better.

Code Example 1

//remove a css class from an element
document.getElementById("myElementID").classList.remove("class_name");

Learn ReactJs, React Native from akashmittal.com