CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Active Row

Aperta
#15 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Lingua principale
JavaScript
Stelle
1
Fork
28
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.