@dxos/app-framework - v0.15.0
    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 defaults = [MyPluginId];
      const fallback = () => <div>Initializing Plugins...</div>;
      const App = useApp({ plugins, defaults, fallback });
      createRoot(document.getElementById('root')!).render(
      <StrictMode>
      <App />
      </StrictMode>,
      );