Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/** @jsxImportSource https://esm.sh/react */
import { generateLessonHtml } from "https://esm.town/v/petermillspaugh/lessonTemplate";
import { renderToString } from "npm:react-dom/server";
/*
* Note: this lesson is a work in progress 👷‍♂️
*/
const TITLE = "Interleaving";
const FILL_BLANK = <>TODO</>;
const CONTENT = (
<>
<h2>Interleaving</h2>
<p>
Interleaving the study of different topics results in more effective learning than studying distinct topics
sequentially.
</p>
<p>
Does interleaving yield better short-term learning? No, but it does yield better long-term learning.
</p>
<p>Interleaving different but related topics. Connects our mental models together.</p>
</>
);
const QUIZ = [
{
question: "",
answer: "",
},
];
export const interleaving = {
title: TITLE,
fillBlank: FILL_BLANK,
quiz: QUIZ,
fetchHtml: (email: string, lesson: number) =>
generateLessonHtml({
email,
lesson,
title: `Lesson ${lesson + 1}: ${TITLE}`,
fillBlank: FILL_BLANK,
content: CONTENT,
quiz: QUIZ,
}),
};
January 20, 2024