This question related to dynamically importing JSX files into React.
Basically we have one main component that dynamically renders other components based on a structure
To complement @gor181's answer, I can add that exports must be this way:
export
export { default as CompA } from "./comp_a"; export { default as CompB } from "./comp_b";
Hope this might be helpful.