Search Docs
Soon to be deprecated, it is recommended to use createRoot.
createRoot
Used for creating custom entries and customizing runtime plugins.
import { createApp } from '@modern-js/runtime';
import type { Plugin } from '@modern-js/runtime'; function createApp(options: { plugins: Plugin[] }): React.ComponentType<any>;
options
plugins
For details, see bootstrap.
bootstrap
import { createApp } from '@modern-js/runtime'; function App() { return <div>app</div>; } export default createApp({ plugins: [customPlugin()], })(App);