DEV Community

Discussion on: My experiences creating a Netflix clone using microfrontends

Collapse
 
shubhmah57 profile image
Shubham

Why variables in the constant layout which is exported, should have the exact names ? When I change the name of Layout to something else, the App Component is not rendered ?
And how is the pilet shared as a prop children ?

export const layout: Partial = {
Layout: App,
MenuContainer: Navigation,
MenuItem: ({ children }) =>

  • {children}
  • ,
    };