CodeYourFuture / CodeYourFuture/React-Module-Project

Feature implement Search functionality

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
♟️ Dependent ticket 🐂 Size Medium 📅 Week 3 🧩 Feature
Dominant language
JavaScript
Stars
1
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.