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 摘要。