How to replace search result presentation to add filter capabilities?

How to create a template that replaces the results section of the search page by creating a results page in React?

In this template we covered 2 use cases: Search using profiling conditions from DITA and search over multiple documentations.