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

Code Example 1

<h1>ALERT</h1>
<script>
 alert("ALERT");
</script>

Learn ReactJs, React Native from akashmittal.com