title: Attempted import error: 'useRouteMatch' is not exported from 'react-router-dom'
body: <p>I have this error when I try to import useRouteMatch from react-router-dom module, I have this error :</p>
  
  <blockquote>
    <p>Attempted import error: 'useRouteMatch' is not exported from
    'react-router-dom'.</p>
  </blockquote>
  
  <p>do I have a wrong version of the react-router-dom module ? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import {
      BrowserRouter as Router,
      Switch,
      Route,
      Link,
      useRouteMatch,
      useParams
  } from "react-router-dom";</code></pre>
  </div>
  </div>
  </p>
  
  <p>I looked in the module's exports, and in fact, it's not exported. Do I have a wrong version of it ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import _BrowserRouter from "./BrowserRouter";
  export { _BrowserRouter as BrowserRouter };
  import _HashRouter from "./HashRouter";
  export { _HashRouter as HashRouter };
  import _Link from "./Link";
  export { _Link as Link };
  import _MemoryRouter from "./MemoryRouter";
  export { _MemoryRouter as MemoryRouter };
  import _NavLink from "./NavLink";
  export { _NavLink as NavLink };
  import _Prompt from "./Prompt";
  export { _Prompt as Prompt };
  import _Redirect from "./Redirect";
  export { _Redirect as Redirect };
  import _Route from "./Route";
  export { _Route as Route };
  import _Router from "./Router";
  export { _Router as Router };
  import _StaticRouter from "./StaticRouter";
  export { _StaticRouter as StaticRouter };
  import _Switch from "./Switch";
  export { _Switch as Switch };
  import _generatePath from "./generatePath";
  export { _generatePath as generatePath };
  import _matchPath from "./matchPath";
  export { _matchPath as matchPath };
  import _withRouter from "./withRouter";
  export { _withRouter as withRouter };</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please help, I need your brain :)</p>