Can I display search box and search results in separate React components

I am thinking to create a search box with Elastic search UI library, my requirements are display search box in header of all the website, but search results will display in a different React components as a part of the page, or even in a pop-up window, is this doable? Any samples I can learn? Thanks!