Skip to content
HopperHopper

Course navigation

Phase 5 · CapstoneDay 23

Plan and scaffold

  • About 70 minutes
  • 7 sections
  • Runnable TypeScript examples

Before you start

About 70 minutes

By the end you will be able to

  1. Describe a small web app in one paragraph and split its features into must have and nice to have.
  2. Sketch the app's data as types, including the whole app state and the part that gets saved.
  3. Plan the app's functions as typed signatures with doc comments before writing any bodies.
  4. Create a Vite project with separate data, storage and rendering modules, and build the simplest feature end to end.

What to remember from earlier

Days 23, 24 and 25 are one project: a capstone, a final project that pulls the whole course together. You build a small web app of your own with Vite, it saves its data in localStorage, and it needs no server. Today you plan it and get its first feature working. Tomorrow you build the rest. On Day 25 you polish it, test it with a keyboard, and write it up.

There is no new reading and nothing new to learn today. Every step uses something from Days 1 to 22, and each milestone names the day to reread if you get stuck. Plan for 25 minutes, then build for 35. Work through the milestones in order: each ends with something you can check, so you always have a working point to come back to.

These pages build one project, a flashcard app, as the worked example. You can build the same one, or pick another from the table in 23.1 and follow the same milestones with your own data. Type your own code either way; the examples are there to compare with when you finish a milestone or have been stuck for 10 minutes.

Section 1 of 7

23.1 Choose Your Project

Pick one of these four. Each is a single page, built with Vite, that saves to localStorage.

Project What it does Uses
Habit tracker Lists habits and lets you tick each day you did one Dates, a weekly grid, streaks, delegated click handling
Flashcards Keeps a deck of question-and-answer cards and quizzes you Decks and cards, a study mode, score tracking, a starter JSON deck
Budget tracker Records what you spend, by category and month Form validation, categories, totals by month, sorting and filtering
Recipe box Stores recipes with tags, and scales ingredients for a crowd Search and filter, tags, scaling ingredient amounts

Choose the one you would actually use. A project you care about is easier to finish, and on Day 25 you will want to show it to someone.

The habit tracker is the only one that needs dates. This course has not covered JavaScript’s Date object, so if you choose it, store each day as a string such as "2026-10-19" (strings in that shape sort in date order) and read MDN: Date for how to get today’s date as text. The other three need nothing beyond Days 1 to 22.

The rest of this page builds Flashcards. Here is how each milestone looks for the other three, so you can follow along with yours:

Milestone Habit tracker Budget tracker Recipe box
The item type { id, name, doneDays: string[] } { id, description, amount, category, month } { id, title, tags: string[], ingredients: Ingredient[] }
The app state The habits, and which week is showing The entries, and the current filter and sort The recipes, the search text, and the number of servings
What is saved The habits The entries The recipes
First feature Type a habit’s name, submit, see it in the list Type a description and amount, submit, see it in the list Type a recipe title, submit, see it in the list

Every first feature has the same shape: a form, one array of items, one list on the page. That is on purpose. It is the simplest thing that touches all three parts of a web app: data, rendering, and an event.

Section 2 of 7

23.2 Milestone 1: Describe It in a Paragraph

Goal: a file called PLAN.md with a one-paragraph description of your app and a list of features split into “must have” and “nice to have.”

A feature is one thing a person can do with the app, such as “add a card” or “delete a card.” Writing the features down before any code does two jobs. It tells you when you are finished, the way the brief did on Day 12. And it makes you choose: you have about two hours of building time in total, so most ideas have to wait.

A must have is a feature without which the app does not do its job. A nice to have is a feature that would make it better but that the app works without. Be strict: if you can describe the app’s purpose without mentioning a feature, it is a nice to have. Four or five must-haves is plenty for two hours.

Create a project folder named after your app (the next milestone puts the Vite project in it) and write PLAN.md there. A file ending in .md is a Markdown file: plain text where a line starting with # is a heading and a line starting with - is a bullet. VS Code shows a formatted preview if you press Ctrl+Shift+V (Cmd+Shift+V on a Mac). Here is the plan for the flashcard app:

# Flashcards

A study app for one deck of flashcards. You type a question on the front
of a card and its answer on the back. Study mode shows one card at a time:
you think of the answer, reveal it, and say whether you got it right. The
app keeps a running score and saves everything in the browser, so the deck
is still there tomorrow. The first time it opens, it loads a small starter
deck so there is something to study.

## Must have

- Add a card (front and back), with clear errors for empty or too-long text
- See every card in a list, and delete a card
- Study mode: one card at a time, show the answer, mark it right or wrong
- A score: total right, total wrong, percent right
- Save the deck and load it on the next visit; a starter deck the first time

## Nice to have

- Several decks, each with its own name
- Shuffle the cards before a study round
- Study only the cards I got wrong last time
- Edit a card instead of deleting and re-adding it

Every must-have is something a person does. “Uses localStorage” is not a feature; “the deck is still there tomorrow” is. Write yours in the same way.

Key idea

A must-have list you can finish is worth more than a long one you cannot. Anything that is not needed for the app to do its job goes under “nice to have,” and nice-to-haves wait until every must-have works.

Section 3 of 7

23.3 Milestone 2: Sketch the Data as Types

Goal: below the feature list in PLAN.md, three types: what one item looks like, what the whole app state looks like, and what gets saved.

On Day 19 every interactive page followed one pattern: keep the data in variables, change the data, then call render() to rebuild the page from it. The data is the app state: everything the page needs to know to draw itself. Deciding its shape now, before any code, is the most useful planning you can do, because every function you write takes some of it as input or returns some of it.

Start with one item. List what a person would see or type for one card, then what the app must remember about it:

/** One flashcard, and how often it has been answered right and wrong. */
type Card = {
  id: number;
  front: string;
  back: string;
  right: number;
  wrong: number;
};

front and back are what the person types. right and wrong are what the score needs. id is a number that is different for every card. Two cards can have the same front text, so the text cannot tell them apart; when the person clicks Delete on one of them, the id says which one.

Then the whole app state: everything the page shows that can change.

/** Where study mode is: which card, and whether its answer is showing. */
type Study = {
  position: number;
  showingAnswer: boolean;
};

/** Everything the page shows. Only cards is saved. */
type AppState = {
  cards: Card[];
  study: Study | null;
  errors: string[];
};

study is null when study mode is off and a Study object when it is on: a union, as on Day 9, so the checker makes every function that reads it handle both cases. errors holds the form’s current error messages, so render() can show them.

Last, what gets saved. Only the deck needs to survive closing the tab: a Card[]. The study position and the error messages belong to one visit; nobody wants to reopen the app halfway through yesterday’s round with yesterday’s error on the screen. Write Saved: Card[] in the plan, and plan one item type, the app state, and a line for what is saved in the same way for your own project.

Pause and try

Question 1 · Multiple choice

A budget tracker’s state is { entries: Entry[]; filter: string; formErrors: string[]; editingId: number | null }. Which part should be saved in localStorage?

  1. All four properties, so the page looks exactly the same next time
  2. entries only
  3. entries and formErrors
  4. Nothing; the browser keeps variables between visits
Check your reasoning

B. Save what the person would be upset to lose: the entries they typed. The rest describes one visit.

  • A would reopen the app with old error messages and a half-finished edit showing. Saving more also means more to validate when it is loaded back on Day 24.
  • C brings back errors about a form the person is no longer filling in.
  • D is wrong: every variable starts fresh when the page loads. That is why Day 21 needed localStorage at all.

Reread 23.3 Milestone 2: Sketch the Data as Types if you chose differently.

Section 4 of 7

23.4 Milestone 3: Plan the Functions

Goal: a list in PLAN.md of every function you expect to need, each as a typed signature with a doc comment, and no bodies.

A signature is a function’s name, its parameter types and its return type: everything except the body. Writing signatures first is planning in TypeScript. If you cannot write a function’s return type, you do not yet know what the function is for, and it is far cheaper to find that out now than halfway through its body.

Go through your must-have list and ask, for each feature, “what calculation does this need, and what does it change on the page?” Then sort the answers into the three modules the app will have, as on Day 13:

  • Data (cards.ts): the types, and functions that take data and return new data. They never touch the page or localStorage.
  • Storage (storage.ts): loading and saving.
  • Rendering (render.ts): functions that take data and an element, and draw the data inside it.

main.ts connects them: it finds the elements, holds the state, and listens for events. Here is the flashcard plan:

## Functions

### cards.ts (data)
/** Trims both sides of a new card and checks them, reporting every problem at once. */
parseCardInput(front: string, back: string): Result<CardInput>
/** One more than the biggest id in the deck, or 1 for an empty deck. */
nextId(cards: Card[]): number
/** A new deck with a new card at the end. */
addCard(cards: Card[], input: CardInput): Card[]
/** A new deck without the card that has this id. */
removeCard(cards: Card[], id: number): Card[]
/** A new deck in which the card with this id has one more right or wrong answer. */
recordAnswer(cards: Card[], id: number, gotIt: boolean): Card[]
/** The next card to study, or null when the round has reached the end of the deck. */
nextStudy(study: Study, cardCount: number): Study | null
/** Total right and wrong answers, and the percent right (0 before any answers). */
score(cards: Card[]): { right: number; wrong: number; percent: number }
/** True when value is an array of cards. */
isCardList(value: unknown): value is Card[]

### storage.ts
/** The saved cards, or null when nothing is saved or the saved text is broken. */
loadCards(): Card[] | null
/** Saves the cards, replacing what was saved before. */
saveCards(cards: Card[]): void
/** The starter deck from public/starter.json, or an empty deck if it cannot be loaded. */
loadStarter(): Promise<Card[]>

### render.ts
renderCards(list: HTMLUListElement, cards: Card[]): void
renderErrors(list: HTMLUListElement, errors: string[]): void
renderStudy(panel: HTMLElement, cards: Card[], study: Study | null): void
renderScore(line: HTMLElement, cards: Card[]): void

Result<CardInput> is Day 16’s result union, with one change: the failure side holds errors: string[] instead of a single error: string, so the form can report every problem at once, as Day 20’s whole-form validation did. isCardList is Day 16’s type guard. loadStarter returns a Promise because fetching a file takes time (Day 17).

Two choices in this plan matter more than the rest. First, the data functions return a new array instead of changing the old one. addCard(cards, input) gives back a new deck and leaves cards alone, just as toSorted did on Day 11. That makes each one easy to test: call it, compare what comes back. Second, the data functions never touch the page. A function that reads an input box can only be tested with a page; a function that takes a string can be tested with one line. This is Day 22’s rule: keep logic out of event handlers.

The list is a plan, not a contract. You will find functions you forgot and drop ones you did not need. That is normal; update the plan when it happens.

Pause and try

Question 2 · Short answer

Look at the flashcard plan. Which of its functions can you test with Vitest by calling them and checking what they return, with no page and no localStorage? Which need something more, and what?

Check your reasoning

Every function in cards.ts (parseCardInput, nextId, addCard, removeCard, recordAnswer, nextStudy, score, isCardList) takes plain values and returns plain values, so a test calls it and checks the result with expect(...).toEqual(...).

The others need more:

  • loadCards and saveCards use localStorage, which exists only in a browser, so their tests need Day 22’s jsdom environment.
  • The render functions create elements with document, so they need jsdom too, and a test checks the elements they made, for example by counting the <li> elements.
  • loadStarter fetches a file, which needs a server or a stand-in for fetch; the simplest choice is to check it by hand in the browser.

A good answer says that the data module is the easiest to test because it has no page and no storage in it, which is exactly why it was kept separate.

Reread 23.4 Milestone 3: Plan the Functions if your sorting differed.

Section 5 of 7

23.5 Milestone 4: Scaffold the Vite Project

Goal: a Vite project with an empty page, three modules in src/, and check and test scripts that both run.

A scaffold is the empty structure of a project, the folders, files and settings, before any features are in it. Open a terminal in your project folder and create the app with Vite, exactly as on Day 18. When it asks, choose the Vanilla framework and the TypeScript variant, and give the project your app’s name:

npm create vite@latest

Then go into the folder it made, install, and add Vitest and jsdom as development packages (Day 22):

cd flashcards
npm install
npm install --save-dev vitest jsdom

Move PLAN.md into the new folder. The template puts a small demo app in src/. Delete everything in src/ except main.ts, then empty main.ts. Create three new files next to it: cards.ts, storage.ts and render.ts. storage.ts stays empty until tomorrow; put a comment in it so you remember why:

// Day 24: loadCards, saveCards and loadStarter go here.

Open package.json and add two scripts to the "scripts" section, after the ones Vite wrote. Vite’s build script already runs tsc before building, and the template’s tsconfig.json checks every file in src/, so check is the same type check on its own:

"scripts": {
  "dev": "vite",
  "build": "tsc && vite build",
  "preview": "vite preview",
  "check": "tsc",
  "test": "vitest run"
}

Your template’s first three lines may differ slightly; keep whatever Vite wrote and add the last two. vitest run runs the tests once and stops, which is what you want from a script.

Last, the page. Open index.html and replace the <div id="app"></div> inside <body> with your app’s markup. Keep the <script type="module" src="/src/main.ts"></script> line below it: that is how the page loads your code. Change the <title> too. Here is the flashcard app’s first <body> content:

index.html (inside body)
<main>
  <h1>Flashcards</h1>
  <form id="card-form">
    <label for="front">Front</label>
    <input id="front" name="front">
    <label for="back">Back</label>
    <input id="back" name="back">
    <button type="submit">Add card</button>
  </form>
  <h2>Cards</h2>
  <ul id="cards"></ul>
</main>

Every input has a <label> whose for matches the input’s id (Day 20), so clicking the label focuses the box and a screen reader announces its name. The list starts empty; render() fills it.

Test it: run npm run check; it reports no errors, because the files are empty. Leave npm test until the next milestone, which writes the first test for it to find. Then run npm run dev and open the address it prints. You should see the heading, the form and the “Cards” heading, with no list items yet.

Watch out

Putting your code next to the template’s code. Leaving the template’s demo files in src/ means its code runs alongside yours, and its leftover main.ts still draws the demo into <div id="app">, which no longer exists. Start from an empty src/ with only your files, so everything on the page is something you wrote.

Section 6 of 7

23.6 Milestone 5: The First Feature, End to End

Goal: typing a card’s front and back and clicking Add card adds the card to the list on the page. Plus two passing tests, one for each layer you can test.

End to end means through every layer of the app: a type and a function in the data module, a render function, and an event in main.ts. One small feature that goes all the way through proves the whole structure works: the modules import each other, Vite serves them, the types check, and the tests run. Every later feature follows the same path.

Pick the simplest must-have that touches all three layers. For flashcards it is “add a card,” without validation; tomorrow adds the error messages. Start with the data module: the types from 23.3, plus the two functions this feature needs, copied from the plan with their bodies written.

flashcards/cards.ts
/** One flashcard, and how often it has been answered right and wrong. */
export type Card = {
  id: number;
  front: string;
  back: string;
  right: number;
  wrong: number;
};

/** What the person types to make a card. */
export type CardInput = {
  front: string;
  back: string;
};

/** Where study mode is: which card, and whether its answer is showing. */
export type Study = {
  position: number;
  showingAnswer: boolean;
};

/** Everything the page shows. Only cards is saved. */
export type AppState = {
  cards: Card[];
  study: Study | null;
  errors: string[];
};

/** One more than the biggest id in the deck, or 1 for an empty deck. */
export function nextId(cards: Card[]): number {
  return cards.reduce((biggest, card) => Math.max(biggest, card.id), 0) + 1;
}

/** A new deck with a new card at the end. */
export function addCard(cards: Card[], input: CardInput): Card[] {
  const card: Card = { id: nextId(cards), front: input.front, back: input.back, right: 0, wrong: 0 };
  return [...cards, card];
}

nextId uses reduce to find the biggest id in the deck, starting from 0, and adds 1. For an empty deck, reduce gives back its starting value, 0, so the first card gets id 1. addCard builds the new card and returns a new array with [...cards, card], spreading the old cards into it, so the deck that was passed in is never changed. Every type is exported, because the other modules need them.

Before going near the page, try it in the terminal. Node runs this file directly, as on Day 13:

flashcards/cards-demo.ts
import { addCard } from "./cards.ts";

let cards = addCard([], { front: "const", back: "A variable that cannot be reassigned" });
cards = addCard(cards, { front: "string[]", back: "An array of strings" });
console.log(cards);

node src/cards-demo.ts shows:

[
  {
    id: 1,
    front: 'const',
    back: 'A variable that cannot be reassigned',
    right: 0,
    wrong: 0
  },
  {
    id: 2,
    front: 'string[]',
    back: 'An array of strings',
    right: 0,
    wrong: 0
  }
]

The second card has id 2 because nextId found 1 as the biggest id in the first deck. Trying a function in the terminal like this takes a minute and tells you the data layer works before any page is involved. Keep the file; tomorrow you can add lines to it for each new function.

Now the rendering module. It draws the deck as one <li> per card:

flashcards/render.ts
import type { Card } from "./cards.ts";

/** Shows one <li> per card, replacing whatever the list showed before. */
export function renderCards(list: HTMLUListElement, cards: Card[]): void {
  list.textContent = "";
  for (const card of cards) {
    const item = document.createElement("li");
    item.textContent = `${card.front} → ${card.back}`;
    list.append(item);
  }
}

Line 1 imports Card with import type. Card is only a type, and types are erased before the code runs, so there is nothing named Card in cards.ts at run time; import type says “this import is for the checker only.” Vite’s tsconfig.json requires it for every import that brings in only types. Line 5 empties the list by setting its textContent to an empty string, and the loop adds one <li> per card using textContent, which is safe with whatever the person types (Day 18).

Last, main.ts connects them:

flashcards/main.ts
import { addCard } from "./cards.ts";
import type { AppState } from "./cards.ts";
import { renderCards } from "./render.ts";

/** The element that matches selector, or a clear error if the page has none. */
function find<T extends Element>(selector: string): T {
  const element = document.querySelector<T>(selector);
  if (element === null) {
    throw new Error(`The page has no ${selector} element.`);
  }
  return element;
}

const form = find<HTMLFormElement>("#card-form");
const frontInput = find<HTMLInputElement>("#front");
const backInput = find<HTMLInputElement>("#back");
const cardList = find<HTMLUListElement>("#cards");

const state: AppState = {
  cards: [
    { id: 1, front: "const", back: "A variable that cannot be reassigned", right: 0, wrong: 0 },
    { id: 2, front: "string[]", back: "An array of strings", right: 0, wrong: 0 },
  ],
  study: null,
  errors: [],
};

function render(): void {
  renderCards(cardList, state.cards);
}

form.addEventListener("submit", (event) => {
  event.preventDefault();
  state.cards = addCard(state.cards, { front: frontInput.value, back: backInput.value });
  frontInput.value = "";
  backInput.value = "";
  frontInput.focus();
  render();
});

render();
  • Lines 6–12 are a small generic helper (Day 14). find<HTMLFormElement>("#card-form") returns an HTMLFormElement, never null: if the page has no such element, it throws an error naming the selector, so a typo in index.html stops the app with a clear message instead of a crash somewhere later.
  • Lines 19–26 are the state, typed with AppState. Two cards are typed in by hand for now; tomorrow they come from localStorage or the starter deck. study and errors are not used yet, but the type requires them, which reminds you they are coming.
  • Lines 28–30: render() rebuilds the page from the state. Today it draws one list; tomorrow it draws everything.
  • Lines 32–39 are the one event. preventDefault() stops the browser from reloading the page. addCard returns the new deck, which replaces state.cards; the inputs are cleared, focus goes back to the front box for the next card, and render() redraws.
  • Line 41 draws the page once at the start.

npm run check reports no errors. In the running app, type unknown in Front and A type you must narrow before using in Back, then click Add card. The list now shows:

<ul id="cards">
  <li>const → A variable that cannot be reassigned</li>
  <li>string[] → An array of strings</li>
  <li>unknown → A type you must narrow before using</li>
</ul>

The two hand-typed cards come from the state, and the new card has been added at the end. Reload the page and the third card disappears: nothing is saved yet. That is tomorrow’s job.

Finally, two small tests, so you know the test script works for both kinds of code. One checks the data module, with no page at all. Create src/cards.spec.ts:

flashcards/cards.spec.ts
import { describe, expect, it } from "vitest";
import { addCard } from "./cards.ts";

describe("addCard", () => {
  it("adds a card with id 1 and no answers to an empty deck", () => {
    expect(addCard([], { front: "const", back: "Cannot be reassigned" })).toEqual([
      { id: 1, front: "const", back: "Cannot be reassigned", right: 0, wrong: 0 },
    ]);
  });
});

The other checks the rendering module. It needs document, so its first line asks Vitest for the jsdom environment (Day 22), and it counts the <li> elements renderCards made in a list that was never put on any page. Create src/render.spec.ts:

flashcards/render.spec.ts
// @vitest-environment jsdom
import { describe, expect, it } from "vitest";
import { renderCards } from "./render.ts";

describe("renderCards", () => {
  it("shows one <li> per card", () => {
    const list = document.createElement("ul");
    renderCards(list, [
      { id: 1, front: "const", back: "Cannot be reassigned", right: 0, wrong: 0 },
      { id: 2, front: "any", back: "Turns checking off", right: 0, wrong: 0 },
    ]);
    expect(list.querySelectorAll("li").length).toBe(2);
  });
});

npm test runs both files, and both tests pass. That is enough for today; tomorrow you write at least five.

Key idea

Build the first feature through every layer before building any feature completely. A thin path that works from the data to the page proves the project’s structure, and every later feature follows the same path.

Pause and try

Question 3 · Tracing

With the app as it is now, you click Add card without typing anything in either box. What does the list show afterward, and which must-have from the plan does this show is still missing?

Check your reasoning

A third item with nothing on either side of the arrow:

<ul id="cards">
  <li>const → A variable that cannot be reassigned</li>
  <li>string[] → An array of strings</li>
  <li>→</li>
</ul>

Both inputs hold "", so addCard makes a card with an empty front and back, and the template string `${card.front} → ${card.back}` becomes just the arrow with a space on each side. The checker cannot catch this: an empty string is still a string. The missing must-have is “clear errors for empty or too-long text,” the validation you add tomorrow with parseCardInput.

Reread 23.6 Milestone 5: The First Feature, End to End if you predicted something else.

Question 4 · Debugging

Sam’s cards-demo.ts imports the type and the function on one line. node src/cards-demo.ts stops with an error. Find the problem and fix it.

flashcards/demo-bug.ts
import { addCard, Card } from "./cards.ts";

const empty: Card[] = [];
console.log(addCard(empty, { front: "const", back: "A variable that cannot be reassigned" }).length);
Check your reasoning

Node reports:

SyntaxError: The requested module './cards.ts' does not provide an export named 'Card'

Card is a type. Node removes types before running the file, so export type Card leaves nothing behind in cards.ts, and the plain import { Card } asks for a value that does not exist. (Vite’s tsconfig.json also makes npm run check reject this line.) Import the type with import type, on its own line:

flashcards/demo-fixed.ts
import { addCard } from "./cards.ts";
import type { Card } from "./cards.ts";

const empty: Card[] = [];
console.log(addCard(empty, { front: "const", back: "A variable that cannot be reassigned" }).length);
1

Reread 23.6 Milestone 5: The First Feature, End to End, the paragraph about render.ts line 1, if you missed it.

Section 7 of 7

23.7 Self-Check

Check today’s work against this table before you stop. Fix anything that does not match; it is much easier now than after tomorrow’s features are piled on top.

Try Should happen
Open PLAN.md A paragraph, must-haves, nice-to-haves, three types, functions
Count the must-haves About four or five, each something a person does
Look in src/ main.ts, cards.ts, storage.ts, render.ts, two spec files
npm run check No errors
npm test Two tests, both passing
npm run dev, then add an item The new item appears at the end of the list
Reload the page The new item is gone (saving comes tomorrow)
Search cards.ts for document Nothing: the data module never touches the page
  • PLAN.md has a one-paragraph description and must-have and nice-to-have lists. Reread
  • PLAN.md sketches the item type, the app state, and what gets saved. Reread
  • PLAN.md lists the functions as typed signatures with doc comments, sorted by module. Reread
  • The Vite project has separate data, storage and rendering modules, and check and test scripts that run. Reread
  • The first feature works end to end in the browser, and both tests pass. Reread
Wrap-up · 1 of 2

Go further

Day 23 has no new reading. The Vite Guide: Getting Started explains the project layout and scripts that npm create vite@latest gives you, and Vitest: Getting Started covers the test script and where test files go.

Wrap-up · 2 of 2

Reflection

Check each statement. If the answer is “not yet,” reread the linked milestone. Then add one line to your notes: which earlier day did you have to look back at most today?

  • I can split an app idea into must-have and nice-to-have features. Reread
  • I can describe an app as types: one item, the whole state, and what gets saved. Reread
  • I can plan functions as typed signatures and sort them into data, storage and rendering modules. Reread
  • I can create a Vite project with check and test scripts. Reread
  • I can build one feature end to end: a data function, a render function, and an event. Reread
  • I can import a type with import type and explain why it is needed. Reread