@frogbotai/live-preview-react
v0.42.0
Published
React SDK for FrogBot live preview.
Readme
@frogbotai/live-preview-react
React SDK for FrogBot live preview.
Installation
pnpm add @frogbotai/live-preview-reactUsage
'use client';
import { useLivePreview } from '@frogbotai/live-preview-react';
export function PagePreview({ page }) {
const { data } = useLivePreview({
initialData: page,
serverURL: 'http://localhost:3000',
});
return <h1>{data.title}</h1>;
}