title: How to push configuration values from Asp.Net Core MVC 2.0 config file to React TypeScript client script?
body: <p>I have an application on <code>ASP.NET MVC Core 2.0</code> using <code>React Template</code>.
  I have propertie in config file on server side - <code>SiteURL</code>. I need to push it to client <code>TypeScript</code>, and don`t understand how can I make it?</p>
  
  <p>I tried to push them throw <code>Home/Index</code> file by placing in the last script</p>
  
  <pre><code>SiteProps.SiteURL= "http://mysiteurl.org"
  </code></pre>
  
  <p>and on client I make</p>
  
  <pre><code>export var SiteProps: { SiteURL: string } = {SiteURL: ""};
  </code></pre>
  
  <p>and import this file on boot</p>
  
  <p>But testing this property on console I see</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: SiteProps is not defined</p>
  </blockquote>
  
  <p>I think that <code>JavaScript</code> did't see my propertie from <code>TypeScript</code> context.</p>
  
  <p>The question is how to make this code work, and what is the best practice to push const values (properties) to client <code>TypeScript</code> code.</p>