React js toggle | React toggle button | React toggle classname

preview_player
Показать описание
React js toggle | React toggle button | React toggle class name

Css code
.toggle--button{
height: 100px;
width: 400px;
margin-top: 15%;
border: none;
font-size: 25px;
background-color: purple;
color: white;
cursor: pointer;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
border-radius: 10px;
margin-left: auto;
margin-right: auto;
display: table;
}

.toggle--close{
background-color: red;
}
Рекомендации по теме
Комментарии
Автор

What if the number of buttons provided are are maped how will you still achieve this?
Because I tried multiple buttons but they keep turning active all at once using this
Method

evoteck
Автор

Thanks a lot, You explained it in a simple way.

gauravmishra
Автор

thanks bro i am searching full day only this one finally got from ur vd

iliyasahmedfarooqui
join shbcf.ru