Check out example codes for "yarn start not working on windows because scripts disabled". It will help you in understanding the concepts better.

Code Example 1

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

Learn ReactJs, React Native from akashmittal.com