-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I specify <Router /> basename? #22
Comments
Yeah, that's a problem currently, 'cause the We'll figure out this, thanks for response! |
Ah yeah, I see. Thanks! And great work with everything. I'm loving mirrorx so far 👍 |
@blairbodnar you could pass an import createHistory from 'history/createBrowserHistory'
import mirror, {Router, render} from 'mirrorx'
const history = createHistory({basename: '...'})
render((
<Router history={history} >
...
</Router>
), document.getElementById('foo')); |
@island205 Thanks! That works great! |
@blairbodnar It's done, now |
@llh911001 Awesome, thank you! |
How can I specify a router basename?
With the
<BrowserRouter />
component in react-router v4, there is a basename prop:Is there a way to access or use this in the component provided in mirrorx?
thanks! 😄
The text was updated successfully, but these errors were encountered: