Skip to content

antoinetissier/module-federation-with-shared-submodules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared Context Example

This example demos a host application wrapped in a ContextProvider and renders a remote component consuming the ContextProvider value.

  • app1 is the host application and is wrapped with NameContext with value of "Billy".
  • app2 standalone application which exposes Welcome component. Welcome renders "Welcome, <name>", where name is the value provided from `NameContext.
  • shared-library is a library that would be shared between app1 and app2. This library contains NameContext component.

Running Demo

Run yarn start. This will build and serve both app1 and app2 on ports 3001 and 3002 respectively.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published