This is my code:
render() {
return (
<div className='btndiv'>
<button className='btn'>Hide</button>
</div>
);
}
When I click the button I want the class of the div to change from .btn.div to .btn divhidden, which basically dissapears it from screen.
.btndivhidden{
display: none
}
I have watched multiple solutions but many of them are too complicated and put way too much code. How can I achieve this the most efficient and short way?