动手做Get your hands on it
练习跟着课文走 —— 每节课尾都有本课的练习。这一页是全部练习的总库,想集中刷题的时候来。每个练习都写清了它来自哪一节,卡住了就回去看那一节。Practice follows the lessons — every lesson ends with the exercises for that lesson. This page is the whole library, for when you want to drill in one sitting. Each exercise names the lesson it came from, so you can go back when you stall.
已筛到你正在学的《React 考试》。想看全部就点上面的「全部」。Filtered to React exam — the course you are on. Use “All” above to see everything.
练习Exercises
筛出 5 个练习(共 148 个)。Showing 5 of 148.在 Title 输入框里打字,字符出现一瞬间又消失;点某一行的 Edit,表单能回填,但同样改不动。控制台没有任何报错。请判断类型并定位。
Type into the Title input and each character appears for an instant, then vanishes; press Edit on a row and the form fills in, but you cannot change it either. The console shows no error at all. Classify the error, then locate it.
点 Edit,输入框正常回填,按钮变成 Update。改完内容点 Update —— 表单被清空、按钮回到 Add,看起来像提交成功了,可列表一点变化都没有。控制台干净。
Click Edit and the inputs prefill correctly, and the button becomes Update. Change the content and click Update — the form clears and the button goes back to Add, so it looks as if the update worked, but the list does not change at all. The console is clean.
快速点两个用户,界面最后显示的是先点的那个。慢一点点就没问题。控制台干净。
Click two users quickly and the screen ends up showing the one you clicked first. Click a little slower and it is fine. The console is clean.
给深层评论加回复,console.log 打出来的树里新回复确实在,但界面没变化。控制台干净。
You add a reply to a deep comment. The tree printed by console.log really does contain the new reply, but the screen does not change. The console is clean.
这一题不告诉你是哪一类。控制台干净,console.log 显示数据是对的。自己分诊。
This one does not tell you which category it is. The console is clean, and console.log shows the data is correct. Sort it yourself.