Check out example codes for "open html file in browser using package.json". It will help you in understanding the concepts better.

Code Example 1

"scripts": {
	"view:cov": "cd coverage/lcov-report && index.html"
}

Learn ReactJs, React Native from akashmittal.com