If I have a value in my appSettings.json file...something like this:
"AccessControl": {
"SystemGated": "True"
},
How can I test that value inside my React component? I am imaging something like this:
export function accessIsGated(value) {
if (value = "True") {
return true;
};
return false;
}
But I am not sure how I can access that value in my appSettings.json file...
import appSettings from '../locales/appSettings.json'and then use it like so:appSettings.AccessControl.SystemGated