How the react application reads custom configuration files in local projects

for example,
for example, I have a setting.prop file under a single-page application, which is shown in figure

.

clipboard.png

question:
(1) in react single-page applications, which directory should this setting.prop be placed in?
(2) how do I get each line in the configuration file and save it to an array?

Apr.10,2022

configuration file can completely use a json file, just use a direct import reference, as for the location, root directory? Common? Create a config folder to store? All of these are fine, as long as you can refer to the file normally

Menu