Sample properties file.
const properties = {
subproper: {
name:'denise',
age:'64'
}
}
Accessing this in code base
subproper.name or subproper.age
What if I want to use dynamic keys?
eg: I tried these two, but both give the error
{subproper.$[`${this.state.propertie1}`] // $ is not a function
{subproper.$`${this.state.propertie1}`} //cannot call value1 of undefined (value1 is value of key this.state.propertie1)