passing searched from search input to another component to be displayed – Javascript
i am really stuck on how i can pass searched data which a user types from my search bar in the header component to the main component to be displayed. Currently if i place a search bar in my main…