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

Code Example 1

<script type="text/javascript" src="yourfile.js"></script>

Code Example 2

<script type="text/javascript" src="/path/to/script.js"></script>

Code Example 3

<script src="index.js"> </script>

Code Example 4

<script src="PathToYourFile.js"> </script>

Code Example 5

<script src = "index.js"></script>

Code Example 6

<script src="myScript.js"></script>

Learn ReactJs, React Native from akashmittal.com