In this tutorial, assuming you are hosting a hybrid react application within a C# application, you will learn how to pass settings from the C# application hosting a react application. In this tutorial, we will pass the URL for an API down from a C# to React. To outline the process we will pass a value into the react application via a custom attribute defined within the react root node element, like this:

Passing data into the C# view can be done as normal. Pass a view model within a controller into the view. Within your react application, assuming you have an index.js file to read the root element like this:

Then within your react app.js you can access the parameter that you passed in, like this: