Check out example codes for "delete all child elements jquery". It will help you in understanding the concepts better.

Code Example 1

$("button").click(function(){

   $("div").empty();

 });

Code Example 2

$("div").empty();

Learn ReactJs, React Native from akashmittal.com