Too Long; Didn't Read
How to Build a Search Bar in React with React Hooks? How to build a simple search box that allows us search through a contact list. We would be using functional components rather than class based components to achieve this. If you’re like me and would like to break out your Search bar into a separate component, then read on. Let’s refactor this baby! We need to refactor our Numbers.js component so that all it does is to render the filtered persons list. It’ll accept one prop — the list/array.