@shopify/react-html
Version:
A component to render your react app with no static HTML.
14 lines (13 loc) • 414 B
TypeScript
import * as React from 'react';
export declare const EXTRACT_ID: unique symbol;
interface SerializeProps<T> {
data(): T;
}
interface WithSerializedProps<T> {
children(data?: T): React.ReactNode;
}
export declare function createSerializer<T>(id: string): {
Serialize: ({ data }: SerializeProps<T>) => JSX.Element;
WithSerialized: ({ children }: WithSerializedProps<T>) => JSX.Element;
};
export {};