I'm beginner to React and It seems that there's convetion like creating separate folders and files for UI, NavBar, Landing page etc in React.
In which component do people usually store URL and API key information in React? I assume that It'd be the best to declare and store API using UseContext and wrap App.js file with ContextProvider, so that API can be accessed anywhere.
or is it better to save them in App.js file, so that It can be passed to children components?
or is it better to create a separate folder for API only?