I want to load a JSON settings file dynamically in my react application.
I'm using webpack and when I import the file like:
import appSettings from './appSettings.json';
Or require it:
const appSettings = require('./appSettings.json');
It compiles the json and not load it dynamically (e.g. not changeable during runtime).
Can someone assist ?