redux-react-router icon indicating copy to clipboard operation
redux-react-router copied to clipboard

Update component to use generic router component

Open SerdarSanri opened this issue 3 years ago • 2 comments

#15

SerdarSanri avatar Oct 26 '22 17:10 SerdarSanri

At first sight createBrowserRouter() != <BrowserRouter/>

lagunovsky avatar Oct 27 '22 08:10 lagunovsky

not sure if I understood what you mean. the only change I added here is adding a router component prop to allow developer to pass different Router component if needed, and it defaults to original Router component. In the end it is not changing anything in existing code pretty much. In case if someone needs to use a spesific router component instead of generic Router, they would be able to pass it as prop.

SerdarSanri avatar Feb 20 '23 23:02 SerdarSanri