Answer the question
In order to leave comments, you need to log in
How to configure react-router so that when the page is updated, the routing does not break?
When I use routing without browserHistory, the pages are saved when updating. When with browserHistory, then when I refresh the page, I see a white screen with a message that the component cannot be found. How to setup?
Answer the question
In order to leave comments, you need to log in
The problem is solved by adding to the webpack config:
devServer: {
historyApiFallback: true
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question