(component: ComponentType
, options: CreateInjectableComponentOptions): InjectableComponent
``` This function accepts component to wrap and options. Options currently consist of just two fields: `name` (will be populated automatically) and `styles`. Styles can be either `null` (no styles at all), array of css strings or `StylesInjector`. `StylesInjector` is a function which accepts component and parameters, injects styles (preferably into `stylesWrapper`) and returns new component. ```ts type StylesInjector =
(Component: ComponentType
, shadowHost: HTMLElement, shadowRoot: ShadowRoot, mountingInto: HTMLDivElement, stylesWrapper: HTMLDivElement) => ComponentType
; ``` By implementing your own style injector you can add support for other styling solutions. For reference please check [`emotion.tsx`](src/emotion.tsx) or [`styled-components.tsx`](src/styled-components.tsx), they both are implementations of `StylesInjector`. `createInjectableComponent` returns plain object with provided component and metadata. You most likely don't want to mofidy or use it directly, just pass them to `injectComponent` function. ### injectComponent SIgnature: ```ts const injectComponent = async
(injectable: InjectableComponent
, props: P, options: InjectOptions
= {}): Promise {
id: string; // Unique ID per each mount
shadowHost: HTMLDivElement; // DOM element where ShadowDOM is attached. Append this to parent's site
shadowRoot: ShadowRoot; // Shadow Root attachet to shadowHost. Inject your styles here
mountedInto: HTMLDivElement; // Div inside shadowRoot where component is rendered. Content of this div will be controlled by React
updateProps: (newProps: Partial ) => Promise