From c9ad8b99b581af5721071fad9eb5bda07e2fd15b Mon Sep 17 00:00:00 2001 From: Durrab Jami Khan Date: Thu, 7 Jan 2021 16:01:18 -0800 Subject: [PATCH] [fix] use BrowserRouter in browser routing code (#1779) Co-authored-by: Durrab Khan --- .../xarc-react-router/src/browser/react-router-browser.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/xarc-react-router/src/browser/react-router-browser.tsx b/packages/xarc-react-router/src/browser/react-router-browser.tsx index bee19d3b4..d59344fc7 100644 --- a/packages/xarc-react-router/src/browser/react-router-browser.tsx +++ b/packages/xarc-react-router/src/browser/react-router-browser.tsx @@ -1,5 +1,5 @@ import { SubAppDef, SubAppFeatureFactory } from "@xarc/subapp"; -import { Router } from "react-router-dom"; +import { BrowserRouter } from "react-router-dom"; import { createBrowserHistory } from "history"; import { ReactRouterFeatureOptions, _id, _subId } from "../common"; @@ -27,9 +27,9 @@ export function reactRouterFeature(options: ReactRouterFeatureOptions): SubAppFe return { Component: (props: any) => { return ( - + - + ); } };