I have a config file setup that exports a bunch of values...
const dev = {
...,
someRandomLink: 'https://google.com'
}
const config = process.env.REACT_APP_STAGE === 'production' ? prod : dev;
export default {
...config
}
I then import this file and try to use the value for a href but it outputs [Object object].
import someRandomLink from '../constants/config';
...
<a href={someRandomLink}...
What is the correct way to extract that config variable as a string for the link?