Question: I created a react component that I want to use twice(or more) inside my page, and I need to load a script tag for it inside the head of my page but just once! I mean even if I use the component twice or more in the page it should add the script tag just once in the head. 
The Problem is that this script tag should be absolutely a part of the component and not statically inserted in the head of my page.

Can anyone help me to make the magic happens? Thanks a lot in advance!

Answer: 
Here what I did to fix my issue:

In Git Settings, Global Settings in Team Explorer, there is an option to choose between OpenSSL and Secure Channel.

Starting with Visual Studio 2017 (version 15.7 preview 3) use of SChannel in Git Global settings fixed my issue.
In a browser open the tfs url
then click on the lock icon in the address bar
then export the root certificate as Base 64 X.509 (.CER)
then appended the root certificate to the cert file here:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\ssl\certs\ca-bundle.crt"