Relative Content

Tag Archive for javascriptreactjswebpackcreate-react-apptsconfig

React: Dynamically Importing JSON Files Within the Public/ Folder W/O Hosting on a Server?

the problem I’m facing at the moment is very unique to me and I hope it may not be to you. Essentially, I am working on a React project built with CRA and it won’t/can’t be hosted on a server. The goal of the app is to read JSON files and conduct further processing of those files in the UI. However, since the app will be in a serverless/network-less environment, I’ll need to read and interpret these files in runtime.