Check out example codes for "como limpar as informações de uma tabela html". It will help you in understanding the concepts better.

Code Example 1

$("#idTabela tr").remove();

Learn ReactJs, React Native from akashmittal.com