CodeYourFuture / CodeYourFuture/React-Module-Project
Feature Active Row
未关闭
🏝️ Priority Stretch
🐂 Size Medium
📅 Week 2
🧩 Feature
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 28
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Highlight booking row when clicked
**Instructions:**
Within the `` component or its child components, add an `onClick` handler to each row in the table (hint: on the `` element). When clicked, the row is "selected" and highlighted with a different colour. When clicked again, the row is unselected and the coloured highlighting is removed.
**Hint:** Use a new state variable for each row to record if the row is selected or not, and use this value to set a class to the `className` prop of the row.
**Test:**
- [ ] Verify that each row of your table can be highlighted (on and off) independently when being clicked.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。