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

**URL:** <https://devforum.okta.com/t/embedded-widget-example-with-react-router-dom-5-x/25847>\
**Category:** Questions\
**Tags:** widget, reactjs, react\
**Created:** [November 17, 2023, 7:01pm UTC](https://devforum.okta.com/t/embedded-widget-example-with-react-router-dom-5-x/25847 "2023-11-17T19:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmd](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@pmd](https://devforum.okta.com/u/pmd)\
**Post date:** [November 17, 2023, 7:01pm UTC](https://devforum.okta.com/t/embedded-widget-example-with-react-router-dom-5-x/25847/1 "2023-11-17T19:01:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [November 21, 2023, 7:23pm UTC](https://devforum.okta.com/t/embedded-widget-example-with-react-router-dom-5-x/25847/2 "2023-11-21T19:23:20Z")

</div>

We have some [samples](https://github.com/okta/okta-react/tree/master/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](https://github.com/okta/okta-react/tree/master/samples/routing/react-router-dom-v6)
