File size: 406 Bytes
ae8fbd7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
</head>
<body>
<div id="root"></div>

<script type="module">
import { SandpackClient } from "https://cdn.skypack.dev/@codesandbox/sandpack-client";

const files = await fetch("/workspace_snapshot.json").then(r => r.json());

new SandpackClient(
  document.getElementById("root"),
  {
    files,
    template: "react"
  }
);
</script>
</body>
</html>