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: 
After two day with system admin support, I got the solution.
I post it here in case it may help somebody else.
Visual Studio 2017 looks not accepting a self signed certificate, as error states ("local issuer blah blah"). It has to be a local CA to approve it.
Steps were:

**Server:** 

1. Install Company/Trusted CA on TFS machine as Trusted Authority root
2. Preparing certificate for TFS and make it derive from company/trusted CA.
3. Install it as Trusted Authority root in TFS machine
4. Configure TFS-IIS binding in order to make TFS certificate to be compulsory for HTTPS connections

**Client:**

1. Install CA certificate as Trusted Authority root on client machine (tried with Windows 7 and 10)
2. Install TFS certificate as Trusted Authority root on client machine (you should see the lock in browser and connecting through it has to be recognized as secure)
3. Install Git client (I have Git-2.15.1.2-64-bit).
4. Run a shell (cmd, Powershell, Git-bash as you prefer) and digit this command: git config --global http.sslCAInfo C:/Users//ca-bundle.crt (because Git and Visual Studio have multiple folders where they store certificates, you are basically creating a global path for both of them)
5. Now you should be able to see a new .gitconfig file with this content: [http]
sslCAInfo = C:/Users//ca-bundle.crt
6. if you digit command "git config --list --show-origin" you should see the new path/config added
7. Copy ca-bundle.crt from C:\Program Files\Git\mingw64\ssl\certs path to C:/Users// path
8. Export CA certificate as Base 64 X.509 (.CER) to up to you path (you can view certificates from IE Internet Options/Content/Certificates).
9. Open it with editor like Notepad++ or whatever the CA certificate that you just exported. Content should be: `-----BEGIN CERTIFICATE-----publickey-----END CERTIFICATE-----`
10. Copy this content
11. Open the C:/Users//ca-bundle.crt and paste appending that content
12. Export TFS certificate as Base 64 X.509 (.CER) to up to you path.
13. Open it with the editor you prefer and copy the content
14. Open the C:/Users//ca-bundle.crt and paste appending that content
15. Save the file

Now you should be able to clone repository.

So basically the point is that certificate has to have the all chain authority in it and **there has to be one**.
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"