index.js 199 B

123456789101112131415
  1. export default [
  2. "Text",
  3. "RootComp",
  4. "Image",
  5. "Button",
  6. "Form",
  7. "ViewComp",
  8. "BaseContainer",
  9. "View"
  10. ].reduce((acc, item) => {
  11. acc[item] = require('./' + item).default;
  12. return acc;
  13. }, {});