import ReactReconciler from 'react-reconciler' ; import { setBatchedUpdates } from '../utils/eventChannel' ; import { hostConfig } from './hostConfig' ; export const reconciler = ReactReconciler ( hostConfig as any ) ; const batchedUpdates = reconciler . batchedUpdates as unknown as < R > ( fn : ( ) => R ) => R ; setBatchedUpdates ( batchedUpdates ) ; export { batchedUpdates } ;