Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change class name in react

 const element = document.getElementById("ID");
ReactDOM.findDOMNode(element).className = "className"
 
PREVIOUS NEXT
Tagged: #change #class #react
ADD COMMENT
Topic
Name
7+3 =