import("dynamic/Button")); const App = () => { const [button, setButton] = React.useState<{ url?: string; scope?: string; module?: string; }>({}); function setButtonFromComponentApp1() { setButton({ url: "http://localhost:3001", scope: "component_app1", module: "./Button", }); } function setButtonFromComponentApp2() { setButton({ url: "http://localhost:3002", scope: "component_app2", module: "./Button", }); } return (
Name: main-app
Framework: react
Language: TypeScript
CSS: Empty CSS