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

how to use hashRouter in react-router-redux

Open ahamedfazil opened this issue 8 years ago • 1 comments

In my application I use react-router-redux for navigation and it works fine. But i want to navigate with hash (#) instead of slash(/).

import createHistory from "history/createBrowserHistory"; const history = createHistory(); createStore( rootReducer, applyMiddleware( promise(), routerMiddleware(history) ) ); < ConnectedRouter history={history}> < div> < App /> < /div> < /ConnectedRouter>

// In my navigation componet I use HashRouter from react-router-dom import { HashRouter as Router, Route, Link } from "react-router-dom"; public render() { return (

<Route path="/home" render={() =>

Home

} />
); }

ahamedfazil avatar Apr 06 '18 10:04 ahamedfazil

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!

timdorr avatar Apr 06 '18 12:04 timdorr