Add YouTube API Key and hide in React App

When i create my first blog 2.5 years back, it was a React app which was using YouTube API. You can find the link for it here.

Now, i did the classic beginners mistake of pushing my youtube data API keys to github. I received a mail also from google to remove it.

So, i decided to remove them from public github. For this i first cloned my repo from github.

Image for post
Image for post
Cloned

Written by

UI Lead- ReactJS, JavaScript and everything in-between.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store