Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add condition inside a className in reactjs

className={`banner ${active ? "active" : ""}`}
 
PREVIOUS NEXT
Tagged: #add #condition #className #reactjs
ADD COMMENT
Topic
Name
6+5 =