UNPKG

piral-core

Version:

The core library for creating a Piral instance.

23 lines (21 loc) 533 B
import type { PiralInstanceOptions, PiralInstance } from './types'; /** * Creates a new PiralInstance component, which can be used for * bootstrapping the application easily. * * @example ```jsx const instance = createInstance({ requestPilets() { return fetch(...); }, }); const app = ( <Piral instance={instance}> <Define name="Layout" component={MyLayout} /> </Piral> ); render(app, document.querySelector('#app')); ``` */ export declare function createInstance(config?: PiralInstanceOptions): PiralInstance;