Check out example codes for "javascript open new window with html content". It will help you in understanding the concepts better.

Code Example 1

var newWin = open('url','windowName','height=300,width=300');
newWin.document.write('html to write...');

Learn ReactJs, React Native from akashmittal.com