I have folder, with a lot of JSON files:
-json
--file1.json
--anotherfile.json
...
--lastfile.json
How can I import all of them from that folder, without explicitly defining their names?
Suppose, I should use something like this:
import * as jsonFiles from './json'
but it doesn't work.
So, how can I do this?
Important note: this is not Node.js, I'm using it with React on client side.