piral-core
Version:
The core library for creating a Piral instance.
22 lines (21 loc) • 559 B
TypeScript
import * as React from 'react';
import type { PiralContextProps } from './types';
/**
* Represents the Piral app shell frame. Use this component together
* with an existing instance to render components from micro frontends
* in your app.
* Wires the state container together with the global providers.
*
* @example
```jsx
const app = (
<MyRouter>
<PiralContext instance={yourPiralInstance}>
<PiralGlobals />
<MyAppContent />
</PiralContext>
</MyRouter>
);
```
*/
export declare const PiralContext: React.FC<PiralContextProps>;