To setup your app, place your API key in a config file in the src folder as follows: Config.js const apiKey = 'YourKey'; export default apiKey; Then in src/components/SearchForm.js import apiKey from '../Config';