@dxos/app-framework - v0.8.2
    Preparing search index...

    Function useApp

    • Expected usage is for this to be the entrypoint of the application. Initializes plugins and renders the root components.

      Parameters

      Returns () => Element

      const plugins = [LayoutPlugin(), MyPlugin()];
      const core = [LayoutPluginId];
      const default = [MyPluginId];
      const fallback = <div>Initializing Plugins...</div>;
      const App = createApp({ plugins, core, default, fallback });
      createRoot(document.getElementById('root')!).render(
      <StrictMode>
      <App />
      </StrictMode>,
      );