Check out example codes for "get connection string from web.config in 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;

Code Example 2

get connection string

Learn ReactJs, React Native from akashmittal.com