CodeYourFuture / CodeYourFuture/React-Module-Project

Feature implement Search functionality

Aperta
#19 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
♟️ Dependent ticket 🐂 Size Medium 📅 Week 3 🧩 Feature
Lingua principale
JavaScript
Stelle
1
Fork
28
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Depends on #18

**Instructions:**

Still in the `` component, implement the `search` method. It must use the `searchVal` variable (that you just passed from the `` component) to **filter** the search results. The filter function should return bookings where `firstName` or `surname` match `searchVal`. Once filtered, use the `setBookings` function to update the results rendered in ``.

**Test:**

Verify that when you enter an existing first name or surname and submit the form, the results are filtered accordingly in the customers table.

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.