I use environment variables for things like backend url, third party service keys, among others. Although for private keys, you’re right, they will be available for anyone.
Hey. This is something I learnt quite late when using git and GitHub. All your commits can be browsed through. so once pushed to GitHub, it can be searches through, and there are scrapers that scrape public repos for this kind of data.
View all comments
Show parent comment
10
u/annoying_mammal Feb 23 '20
{error && ("There has been an error")} {loading && ("loading...")} {Weatherdata && (<div>...</div>)}
Use environment variables for the API key.