Thought about what happens when a user is mid-search and resizes their screen.
Desktop search disappears on mobile....and so do their results. Bad UX.
So I wrote a function that swaps the components AND transfers the active search value and results into the now opened mobile search bar on resize.
Seamless. No data lost. No confusion.
The little details nobody asks for but everybody notices. React โค๏ธ