The 'react-router-dom' method `useLocation` is not a known module. · Issue #239 · lodash/babel-plugin-lodash · GitHub
Bug]: useLocation inside <Routes location={location}> doesn't return given location · Issue #8470 · remix-run/react-router · GitHub
![javascript - Can't pass data from one page to another with React-Router-DOM (useHistory, useLocation) - Stack Overflow javascript - Can't pass data from one page to another with React-Router-DOM (useHistory, useLocation) - Stack Overflow](https://i.stack.imgur.com/3kyVb.png)