CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Active Row

Abierto
#15 0 comentarios 0 reacciones 0 asignados Ver en GitHub
🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Lenguaje dominante
JavaScript
Estrellas
1
Forks
28
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.