Check out example codes for "innerhtml jquery". It will help you in understanding the concepts better.

Code Example 1

$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery

Code Example 2

$('#selector').text('Your text here');

Code Example 3

$(element).html("Hello World");

Code Example 4

var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);

Learn ReactJs, React Native from akashmittal.com