title: 'Provider' cannot be used as a JSX component
body: <p>I've recently updated my react-router-dom to v6. The new version is very strict about the types used. When I use a redux provider in my code I get the following error message:</p>
  <pre><code>TS2786: 'Provider' cannot be used as a JSX component.
  </code></pre>
  <p>But it is fine for other providers:</p>
  <pre><code>root.render(
    &lt;FirebaseAppProvider firebaseConfig={firebase}&gt;
      &lt;Provider store={store}&gt;
        &lt;BrowserRouter&gt;
          &lt;Routes&gt;
            &lt;Route path=&quot;/&quot; element={&lt;div&gt;hello&lt;/div&gt;} /&gt;
          &lt;/Routes&gt;
        &lt;/BrowserRouter&gt;
      &lt;/Provider&gt;
    &lt;/FirebaseAppProvider&gt;,
  );
  </code></pre>
  <p>Do you have any solution rather than <code>ts-ignore</code>?</p>