Check out example codes for "get connectionstring from web config c#". It will help you in understanding the concepts better.

Code Example 1

// Add a using directive at the top of your code file    
using System.Configuration;

// Within the code body set your variable    
string cs = ConfigurationManager.ConnectionStrings["connectionStringName"].ConnectionString;

Learn ReactJs, React Native from akashmittal.com