import { ReactNode } from 'react' ; import './patchGlobalObject' ; import { createAdaptor , AdaptorType , ExportComponentMeta } from './adaptor' ; import { GOJI_TARGET } from './constants' ; import { batchedUpdates } from './reconciler' ; interface RenderOptions { type : AdaptorType ; disablePageSharing : boolean ; exportMeta : ExportComponentMeta ; } const DEFAULT_RENDER_OPTIONS = { type : 'page' , disablePageSharing : false , exportMeta : { } , } ; export const render = ( element , options = { } ) => { const { type , exportMeta , disablePageSharing } = { ... DEFAULT_RENDER_OPTIONS , ... options , } ; const adaptor = createAdaptor ( type , GOJI_TARGET , exportMeta , disablePageSharing ) ; return adaptor . run ( element ) ; } ; export * from './components/factoryComponents' ; export { Subtree } from './components/subtree' ; export { createPortal } from './portal' ; export * from './lifecycles' ; export * from './portal' ; export { SIMPLIFY_COMPONENTS as unstable_SIMPLIFY_COMPONENTS , SimplifyComponent as unstable_SimplifyComponent , GojiTarget , } from './constants' ; export { gojiEvents } from './events' ; export { Partial } from './partial' ; export { batchedUpdates as unstable_batchedUpdates } ; export { PublicInstance as GojiPublicInstance } from './reconciler/publicInstance' ; export { setGojiBlockingMode } from './container' ;