React developer guides¶
Who this is for
Developers comfortable with React, TypeScript, and npm who want full control of components, telemetry, theming, and LMS export.
These guides assume you are comfortable with React, TypeScript, and npm. You will integrate LessonKit into apps you own or scaffold with the CLI.
New to React?¶
LessonKit courses are React apps (usually Vite + TypeScript). You do not need to be an expert, but you should understand components, props, state, and effects before you customize navigation or wire telemetry.
Suggested learning order
JavaScript (if rusty) — MDN JavaScript guide
React — react.dev Learn (official tutorial)
TypeScript (basics) — TypeScript Handbook
Vite (how
lessonkit devworks) — Vite Getting StartedLessonKit — Quickstart on this site
Curated resources¶
Resource |
What to focus on |
|---|---|
Components, JSX, props, state, rendering lists, sharing state between components |
|
|
|
Breaking UI into components—same mindset as structuring lessons |
|
Types on props, |
|
Dev server, |
|
Installing Node, running |
|
Typing React components when TypeScript errors block you |
After the basics, skim our components & hooks guide and the react-vite example for patterns LessonKit expects (Course, Lesson, stable IDs).
Prefer not to learn React?
Use the Vibe coding guides with an AI editor and the CLI—you can ship courses without studying React first.
What LessonKit gives you¶
Components —
Course,Lesson,Scenario,Quiz,Reflection,ProgressTrackerRuntime —
LessonkitProviderwith progress, telemetry batching, xAPI client lifecyclePackages —
@lessonkit/core,@lessonkit/xapi,@lessonkit/themes,@lessonkit/accessibility,@lessonkit/lxpackTooling —
@lessonkit/clifor init/dev/build/package andlessonkit.jsonas the packaging manifest
Guide outline¶
Topic |
Page |
|---|---|
Coming from H5P |
|
Getting started (5 min) |
|
Quickstart |
|
Project structure |
|
Components & hooks |
|
Telemetry & xAPI |
|
Production checklist |
|
Theming & a11y |
|
Packaging & CLI |
|
Export parity |
|
Plugins |
|
Monorepo |
Identity requirements (0.5+)¶
courseIdrequired onCourse/LessonkitProviderlessonIdrequired onLessoncheckIdrequired onQuiz/KnowledgeCheck
Align IDs with lessonkit.json and your LXPack descriptor. See Identity reference.
Other audience¶
Instructional designers using AI assistants should start with Vibe coding guides.