用于创建自定义入口,定制运行时插件。只有在使用自定义 App 时,才需要使用该 API。
import { createApp } from '@modern-js/runtime';
import type { Plugin } from '@modern-js/runtime';
function createApp(options: { plugins: Plugin[] }): React.ComponentType<any>;
options
: 可选的参数。
plugins
:自定义的插件扩展。详见 bootstrap
。