React Show & Hide Floating Component This is a sample demonstration of react hooks to show and hide components based on a triggering button. Also when the (floating) component is visible the underlying document should be prevented from getting scrolled by the scroll events.