guillaumeparis2000 / react-piwik

Library that allow to connect piwik with the react-router and track custom events
31 stars 17 forks source link

BrowserRouter support? #30

Closed raDiesle closed 4 years ago

raDiesle commented 4 years ago

In newer versions of react-router-dom ( v5.1.5), support changed:

BrowserRouter does not accept prop "basename", but BrowserRouter does not accept to pass "history" prop.

Is there a solution to support both?

raDiesle commented 4 years ago

Found solution by createBrowserHistory({ basename: '/your/app' });