API.md

@lazarv/react-server/prerender

この API リファレンスはまだ翻訳されていません。以下は英語版の内容です。

Partial pre-rendering controls: usePrerender to mark a component for build-time rendering, and the withPrerender HOC wrapper.

function usePrerender(reason?: string): void;

This function is used to tell the server that the component should be postponed and prerender should be used for the rendering context.

Parameters

function withPrerender<T extends React.FC>(Component: T): T;

This function is used to wrap a component and tell the server that the component should be postponed and prerender should be used for the rendering context.

Parameters