Input
items = ["Apple", "Banana", "Grape", "Pineapple"] User types: "ap"
Output
Visible list items: ["Apple", "Grape", "Pineapple"]
Given an array of strings `items`, build a live search filter. Render an input with `data-testid="search-input"` and a list container with `data-testid="items-list"`. Each item is a row element with `data-testid="item"`...
index.htmlEditable templatestyles.cssEditable startermain.jsEditable starteritems = ["Apple", "Banana", "Grape", "Pineapple"] User types: "ap"
Visible list items: ["Apple", "Grape", "Pineapple"]
Can you highlight the matching substring in each visible item without changing the filtering behavior?