Check out example codes for "blizard.js print". It will help you in understanding the concepts better.

Code Example 1

<p id="p">
  <script>
    sl.print("p", "hello!")
  </script>

Learn ReactJs, React Native from akashmittal.com