@shopify/react-html
Version:
A component to render your react app with no static HTML.
33 lines (32 loc) • 836 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
export interface TranslationDictionary {
[key: string]: string | TranslationDictionary;
}
export interface ErrorInfo {
message: string;
stack: string | undefined;
}
export declare type ErrorLike = Error | ErrorInfo;
export interface Asset {
path: string;
integrity?: string;
}
export interface Browser {
userAgent: string;
supported: boolean;
}
export interface Props {
children?: React.ReactNode;
styles?: Asset[];
blockingScripts?: Asset[];
scripts?: Asset[];
headData?: {
[id: string]: any;
};
data?: {
[id: string]: any;
};
hideForInitialLoad?: boolean;
}
export default function HTML({children, blockingScripts, scripts, styles, data, headData, hideForInitialLoad}: Props): JSX.Element;