Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code100x/cms
/ main
Function
main
src/components/NotionRenderer.tsx:39–43 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
38
const [data, setData] = useState(null);
39
async function main() {
40
const res = await fetch(`/api/notion?id=${id}`);
41
const json = await res.json();
42
setData(json.recordMap);
43
}
44
45
useEffect(() => {
46
main();
Callers
1
NotionRenderer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected