0

I have a directory structure like this:

index.js
generated/
|___comp1/Comp1.jsx
|___comp2/Comp2.jsx
|___comp3/Comp3.jsx
|___...
  • index.js is the entry point for webpack.
  • The amount of components in generated/ is uncertain and may vary from build to build.

Does anybody know how I could import and render every component that exists under generated/ inside index.js?

Rotareti
  • 41,172
  • 18
  • 102
  • 102

0 Answers0