In React & Js I am saving an Input Name as a String in an Object :
window.ObjectOne = {
ObjectOneKey : "MyInputName",
}
The Input Name is an Object Path Like "Object.FirstName" or a Variable Name "MyVariableName"
What I am Trying is to save the inpute name AS a Variable or Object Path, not as a String (Without Quote) like this :
window.ObjectOne = {
ObjectOneKey : MyInputName,
}
What I want is to EXPORT this Object with Variable Name as Object Value to import it in another project/website... This way, Objects will always have VariableName as value to refer Localproject Variable (Easier to Edit One Variable value than Multiple Object Value)
Is there a Way to do it ? Tried to replace Quote in Object value but it's not working