Skip to content

Named imports in lazy feature #14390

Closed
Closed
@barth12

Description

@barth12

Hi guys,

How could I import named imports using lazy syntax?

Before we could use

import { MainComponent, Component1, Component2 } from './components';

How to achieve something like this (although this does not work)?:

const { MainComponent, Component1, Component2 } = React.lazy(() => import('./components'));

Thank you and have a good day :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions