how to check div empty or not in react code example Example: js check if div is empty if ($('#element').is(':empty')){ //do something }