Check out example codes for "the name scripts does not exist in the current context mvc 5". It will help you in understanding the concepts better.

Code Example 1

<system.web.webPages.razor>
    <pages>
      <namespaces>
        <add namespace="System.Web.Optimization"/>
      </namespaces>
    </pages>
</system.web.webPages.razor>

Learn ReactJs, React Native from akashmittal.com