fix: add sdk as script
This commit is contained in:
13
components/Current/LivePreview/index.tsx
Normal file
13
components/Current/LivePreview/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import ContentstackLivePreview from "@contentstack/live-preview-utils";
|
||||
import { useEffect } from "react";
|
||||
|
||||
export default function InitLivePreview() {
|
||||
useEffect(() => {
|
||||
console.log("INIT");
|
||||
ContentstackLivePreview.init();
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user