Sample (which sample are you having trouble with)
https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-accordion
@gautamdsheth
User inputs the keywords and one list entry is getting displayed with the keywords. But pagination shows two pages, when users click on page#2 it
Steps to reproduce the behavior:


Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@gautamdsheth
As much as I could understand, the paging is implemented on all the items for the accordion (from the list). Searching does not change that, obviously, and listItems object also needs to be retained for searching to work without a trip back to get items.
An idea is to rename the items to pagedItems, and then use items to store the actual items shown in the control. Paging can then be implemented on items instead of listItems.
On first load, it can be so that items = listItems, and on search, items = updatedList.
If you think this makes sense, I can send in a PR.
Hey @AbhishekGarg , that makes sense. Feel free to send a PR.