DrillLab
引导计划Guided plan

Cab Booking 完整练习Cab Booking

在空文件夹里搭出整个 Cab Booking 应用:Context 管全局状态,四个页面一个状态机,四个测试全过。Build the whole Cab Booking app in an empty folder: Context for global state, four pages on one state machine, all four tests passing.

6 档 · 39 条6 stages · 39 items第 1 档 · 前置:地基stage 1 · Prerequisites: Foundations还剩约 7 小时about 7 h left
0 / 39

要做那道用 Context 管全局状态的 React 应用题。Facing the React task that holds global state in Context.

这条计划的全程The whole route

  1. 前置Prereq

    前置:地基Prerequisites: Foundations

    你在这You are here
    0 / 9约 2 小时about 2 h

    要自己起一个 Vite + React 项目、要读 ESM 的报错。这一档就是这些。You will start a Vite plus React project yourself and read ESM errors. That is what this course covers.

    1. Node.js、npm、node_modules 和 lockfileNode.js, npm, node_modules and the lockfile学课程Learn约 12 分钟~12 min没做Not started
    2. package.json 逐字段读一遍package.json, field by field学课程Learn约 14 分钟~14 min没做Not started
    3. npm scripts:命令到底跑了什么npm scripts: what the command actually runs学课程Learn约 13 分钟~13 min没做Not started
    看这一档全部 9 条View all 9 items
    1. Node.js、npm、node_modules 和 lockfileNode.js, npm, node_modules and the lockfile学课程Learn约 12 分钟~12 min没做Not started
    2. package.json 逐字段读一遍package.json, field by field学课程Learn约 14 分钟~14 min没做Not started
    3. npm scripts:命令到底跑了什么npm scripts: what the command actually runs学课程Learn约 13 分钟~13 min没做Not started
    4. 两个考试项目的目录,逐个说明The directory layout of both exam projects学课程Learn约 12 分钟~12 min没做Not started
    5. 数组与对象:不可变更新三件套Arrays and objects: three ways to update without changing the original学课程Learn约 14 分钟~14 min没做Not started
    6. 异步:Promise、await、all 和 allSettledAsync: Promise, await, all and allSettled学课程Learn约 15 分钟~15 min没做Not started
    7. ESM:import / export 与那些莫名其妙的报错ESM: import / export, and the errors that look strange at first学课程Learn约 10 分钟~10 min没做Not started
    8. 类型、type 与 interfaceTypes, type and interface学课程Learn约 12 分钟~12 min没做Not started
    9. 泛型参数,以及怎么读 tsc 的报错Generic parameters, and how to read a tsc error学课程Learn约 12 分钟~12 min没做Not started
  2. 前置Prereq

    前置:这道题用到的 React 那几节Prerequisites: the React lessons this task leans on

    0 / 5约 72 分钟about 72 min
  3. Learn

    学:Cab Booking 课文Learn: the Cab Booking lessons

    0 / 8约 3 小时about 3 h
  4. Practice

    练:Cab Booking 的课内练习Practice: the Cab Booking exercises

    0 / 15

    15 个。包含那个「脚手架自己跑不起来,原因是一个文件扩展名」的 Debug Lab。15 of them, including the debug lab where the provided project does not run and the cause is one file extension.

    15 格,一格一个真实条目 —— 鼠标停上去或用键盘走过去会读出它的标题。15 squares, one per real item — hover or tab to one and it reads out its title.

  5. Code

    写:Context 版 Cab BookingCode: the Context version

    0 / 1约 45 分钟about 45 min

    带脚手架写一遍,四个测试跑绿。第二遍点「空白重来」才算验收。Write it once with the scaffold and take the four tests green. The pass that counts is the second one, with start blank.

    1. Cab Booking(Context 版)Cab Booking (Context version)做练习Practice约 45 分钟~45 min没做Not started
  6. 空手做Rebuild

    空手做:整个应用从零重写Rebuild: the whole app from nothing

    0 / 1约 60 分钟about 60 min

    只给四个测试和一份数据文件,60 分钟。历史只留最新三条、最新在最上 —— 这两个细节决定过不过。Four tests, one data file, 60 minutes. The history keeps only the three most recent with the newest first, and those two details decide pass or fail.

    1. 空文件夹里做出整个 Cab BookingBuild the whole of Cab Booking from an empty folder模拟考试Assess约 60 分钟~60 min没做Not started

正在读这台浏览器里的进度…Reading your progress from this browser…

计划里每一格的完成状态都是已有进度的一个视图 —— 以前自己刷过的八股、做过的练习一条都不会白做,跟着计划做完的 也照样在 课程 里打勾。 换计划、不跟计划都不动任何记录。Every square here is a view of progress you already have. Questions you rated and exercises you solved before picking a plan all count, and anything you finish inside a plan is still ticked in the courses. Changing plans or stopping never touches a record.