Embedded widget example with react-router-dom > 5.x

I’m looking for an example of how to integrate the okta react widget with a version of react-router-dom greater than 5.x. I’m using 8.x. The website example clearly shows that it’s using 5.x but I can’t downgrade in my product. Because the SecureRouter component is no longer available, I need a workaround.

We have some samples in the okta-react GH repo, including one for react-router-dom v6: https://github.com/okta/okta-react/tree/master/samples/routing/react-router-dom-v6