Expected usage is for this to be the entrypoint of the application. Initializes plugins and renders the root components.
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>,); Copy
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>,);
Expected usage is for this to be the entrypoint of the application. Initializes plugins and renders the root components.