title: How to pass Serverside parameter in ASP.Core to React?
body: <p>I created a React/Typescript project with <code>dotnet new "ASP.NET Core with React.js"</code>.<br>
  index.cshtml:</p>
  
  <pre><code>&lt;div id="react-app"&gt;&lt;/div&gt;
  @section scripts {
      &lt;script src="~/dist/main.js" asp-append-version="true"&gt;
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>boot.tsx(shortened):  </p>
  
  <pre><code>function renderApp() {
      ReactDOM.render(
          &lt;AppContainer&gt;
              &lt;BrowserRouter children={ routes } /&gt;
          &lt;/AppContainer&gt;,
          document.getElementById('react-app')
      );
  }
  renderApp();
  if (module.hot) {
      module.hot.accept('./routes', () =&gt; {
          routes = require&lt;typeof RoutesModule&gt;('./routes').routes;
          renderApp();
      });
  }
  </code></pre>
  
  <p>How can I pass ASP.Core generated information(the routes from the controllers) to my react/typescript code?</p>