Using useLocation to send data between pages
Introduction
UseLocation is a react-router-dom hook that can identify exactly where the user is in the app, based on the URL. It's a tool that can make your app "self-aware."
Main use cases:
1 - Toggle visibility of certain components according to th...
reactnoobtomaster.hashnode.dev4 min read