lagunovsky / redux-react-router

A Redux binding for React Router v6
MIT License
72 stars 9 forks source link

Update component to use generic router component #16

Open SerdarSanri opened 1 year ago

SerdarSanri commented 1 year ago

15

lagunovsky commented 1 year ago

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

SerdarSanri commented 1 year ago

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.