options
Declare a subapp.
NOTE: A webpack plugin will statically analyze the code to extract the subapp info so options must be a literal object in place. It cannot be a variable declared elsewhere.
GOOD:
export const subapp1 = declareSubApp({
name: "Subapp1",
getModule: () => import("subapp1")
})
BAD:
const subappInfo = { name: "Subapp1", getModule: () => import("subapp1")};
export const subapp1 = declareSubApp(subappInfo);
options
subapp definition
a React Component
Create a React component from a subapp definition