K
K
KnightForce2017-05-10 00:10:11
React
KnightForce, 2017-05-10 00:10:11

React Router. Is it possible to use browserHistory instead of hashHistory to render on a client without a server?

I want to use the react-router-redux library, but I need browserHistory, in no case hashHistory.
But when using browserHistory, the download from the server starts, which is not necessary.
How to get around this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Gushchin, 2017-05-10
@KnightForce

In any case, with browserHistory, you will need some kind of web server configured to return statics and an index.html file for all other GET requests ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question