DrillLab
引导计划Guided plan

React 考试准备React Assessment

在空文件夹里做完 Notes Manager 和并发任务调度器,并通过一套换了场景的模拟考。Build Notes Manager and the concurrent task runner in an empty folder, and pass a mock in a new scenario.

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

要考 React:组件、hooks、受控输入、列表、useEffect、Context。Facing a React assessment: components, hooks, controlled inputs, lists, useEffect, Context.

这条计划的全程The whole route

  1. 前置Prereq

    前置:地基Prerequisites: Foundations

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

    React 考试假设你会 npm、会读 package.json、会不改原数组地更新数据、会读 tsc 的报错。这一档就是这些。已经会了就直接勾掉。The React exam assumes you know npm, can read a package.json, can update an array without mutating it, and can read a tsc error. Tick these off if you already can.

    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. Learn

    学:React 课文Learn: the React lessons

    0 / 21约 6 小时about 6 h

    按原顺序走。第 3 部分是 Q1 逐题拆解,第 4 部分是 Q2,第 5 部分是五道高频变式。In their existing order. Part 3 takes Q1 apart task by task, Part 4 is Q2, and Part 5 is five variations that come up often.

    1. 组件就是一个返回界面的函数A component is a function that returns what you see on screen学课程Learn约 11 分钟~11 min没做Not started
    2. props:数据往下流,事件往上报props: data flows down, events go back up学课程Learn约 12 分钟~12 min没做Not started
    3. useState:让界面跟着数据变useState: making the screen follow the data学课程Learn约 14 分钟~14 min没做Not started
    4. 受控输入:value + onChange 的闭环Controlled inputs: the loop between value and onChange学课程Learn约 13 分钟~13 min没做Not started
    5. 列表渲染与 keyRendering a list, and the key prop学课程Learn约 10 分钟~10 min没做Not started
    6. useEffect:把 props 的变化同步进 stateuseEffect: copying a change in props into state学课程Learn约 15 分钟~15 min没做Not started
    7. 派生数据与状态提升:什么不该做成 stateValues you can compute, and lifting state up: what should not be state学课程Learn约 11 分钟~11 min没做Not started
    8. 先读题:三个任务、一条硬约束、四个测试Read the question first: three tasks, one rule you must not break, four tests学课程Learn约 13 分钟~13 min没做Not started
    9. Task 1 · Add:提交表单,新笔记进入表格Task 1 · Add: submit the form and the new note appears in the table学课程Learn约 12 分钟~12 min没做Not started
    10. Task 2 · Delete:点 Delete,该行按 id 被移除Task 2 · Delete: click Delete and that one row is removed by id学课程Learn约 11 分钟~11 min没做Not started
    11. Task 3 · Edit:回填、改文字、就地更新、退出编辑Task 3 · Edit: refill the form, change the button text, update the row where it is, leave edit mode学课程Learn约 18 分钟~18 min没做Not started
    12. 四个测试逐条读,以及它们的盲区The four tests read line by line, and what they fail to catch学课程Learn约 12 分钟~12 min没做Not started
    13. 读题:三条要求,每一条都在指定一种写法Reading the question: three requirements, and each one decides how you write it学课程Learn约 12 分钟~12 min没做Not started
    14. 实现:worker pool(工人池)Building it: a worker pool, meaning a fixed number of workers sharing one queue学课程Learn约 16 分钟~16 min没做Not started
    15. 变式一 · Todo ListVariation 1 · Todo List学课程Learn约 14 分钟~14 min没做Not started
    16. 变式二 · 计时器:useEffect 的清理函数Variation 2 · a timer: the useEffect cleanup function学课程Learn约 16 分钟~16 min没做Not started
    17. 变式三 · fetch 取数:loading、error 与竞态Variation 3 · fetching data: loading, error, and the race between two requests学课程Learn约 18 分钟~18 min没做Not started
    18. 变式四 · 递归读取评论的评论Variation 4 · reading replies to replies with recursion学课程Learn约 20 分钟~20 min没做Not started
    19. 变式五 · 主题切换:Context 怎么用Variation 5 · theme switching: how to use Context学课程Learn约 20 分钟~20 min没做Not started
    20. Debug Lab · React 十种典型故障Debug Lab · ten typical React failures学课程Learn约 20 分钟~20 min没做Not started
    21. 从零重写:空文件夹到 4 个测试全过Write it again yourself: from an empty folder to 4 passing tests学课程Learn约 60 分钟~60 min没做Not started
  3. Review

    背:React 方向的八股Review: the React questions

    0 / 36

    面试和考试的口头追问都从这 36 道里来。答不上来就标「不会」,抽认卡下一轮会先抽它。The spoken follow-up questions come from these 36. Mark the ones you miss; the next flashcard round puts them first.

    过过一遍 0 / 36 · 其中标了「会」的 0 道。自评过一次就算过了这一档 —— 不用把每道都标成「会」才往下走。0 / 36 reviewed, 0 of them marked confident. One rating is enough to clear this stage — you do not have to reach confident on every question first.

    覆盖方向:Topics covered: React 与生态React & ecosystem

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

  4. Practice

    练:React 的课内练习Practice: the React exercises

    0 / 54

    54 个,含 14 个 Debug Lab。检查是正则匹配,不跑代码 —— 它判得出你用没用 filter,判不出你写的跑不跑得通。54 of them, including 14 debug labs. The check is a regex match, not a run: it can tell whether you used filter, not whether your code works.

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

  5. Code

    写:React 的 Coding 题Code: the React coding problems

    0 / 7约 4 小时about 4 h
  6. 空手做Rebuild

    空手做:从零重写Rebuild: from an empty folder

    0 / 2约 2 小时about 2 h

    Q1 和 Q2 各一道,计时、无提示、答案锁到交卷之后。这一档才是真实考试的样子。One for Q1 and one for Q2: timed, no hints, answers locked until you hand in. This tier is what the real thing looks like.

    1. 从零重建 Q1 · Notes ManagerRebuild Q1 · Notes Manager模拟考试Assess约 75 分钟~75 min没做Not started
    2. 从零重建 Q2 · 并发任务调度器Rebuild Q2 · the concurrent task runner模拟考试Assess约 45 分钟~45 min没做Not started
  7. 模拟考Assess

    模拟考:Support Ticket BoardAssess: Support Ticket Board

    0 / 1约 75 分钟about 75 min

    考点和 Q1 一一对应,题面是新的。不许回头看 Q1 的答案。It tests the same things as Q1 on a new problem. Do not look back at your Q1 answer.

    1. 模拟考 A · Support Ticket BoardMock exam A · Support Ticket Board模拟考试Assess约 75 分钟~75 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.