While onclick the div background color will change to blue again click the div color will change to white.. with dynamic id... please help how can I do in reactjs
jQuery code:
$(document).ready(function($){
$('#my_checkbox').on('change',function(){
if($(this).is(':checked')){
$("#card").css('background-color',"blue");
}else{
$("#card").css('background-color','white');
}
})
})