Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Remote Module #24

Open
amer201326 opened this issue May 11, 2022 · 1 comment
Open

Load Remote Module #24

amer201326 opened this issue May 11, 2022 · 1 comment

Comments

@amer201326
Copy link

Hi,
can I use the (loadRemoteModule) function to load a component from React project?
i try this :

const r = await loadRemoteModule({
type: 'script',
remoteName:'react',
remoteEntry: 'http://localhost:4204/remoteEntry.js',
exposedModule: './web-components'
});

const ref2 = this.reactContainer.createComponent(r.react);

but it not work,

or any way to dynamic load React component and pass parameter to it ?

@mannb1
Copy link

mannb1 commented May 30, 2022

Yes, I would love to see this example expanded to have a React Remote as well. I am trying to adapt your other example but the lerna dependency has me confused - I much prefer this example without the lerna dependency. Any chance of adding a React remote to this example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants