Is there a way to increase the height of a div each time it is clicked?
I had an idea to add an extra CSS class to a div whenever a button is clicked. Here's how the concept might look:
#divToBeDoubled {
height: 100px;
&.doubleHeight{
height: selfHeight*2
}
}
Can this be accomplished using Reactjs and SCSS?