CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Active Row

未关闭
#15 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
🏝️ 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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。