PDF Search: react hooks in action