#Use `lazy()` without default export

1 messages · Page 1 of 1 (latest)

pale jackal
#

Can I use lazy to import a component while using non default export? If this is possible, what syntax should I use?

hardy root
#
lazy(async () => {
  const mod = await import(./my/mod);

  return { default: mod.MyComponent };
});