-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
example.html
30 lines (27 loc) · 1.2 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp"></script>
<script type="module">
// production
import * as tsFsrs from 'https://cdn.jsdelivr.net/npm/ts-fsrs@latest/+esm';
// development
// Please start with this command: `pnpm run build`
// you need install `Live Server` in vscode:
// https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
// import * as tsFsrs from '../dist/index.mjs';
window.tsfsrs = tsFsrs
</script>
<title>TS-FSRS example</title>
</head>
<body>
<div id="root" class="max-w-full content-center"></div>
</body>
<script type="text/babel" src="./exampleComponent.jsx"></script>
<script type="text/babel" src="./example.jsx"></script>
</html>