Answer the question
In order to leave comments, you need to log in
What's wrong with react router?
I have a simple route
<React.Fragment>
<Route path="/public" component={PublicComponent}></Route>
</React.Fragment>
<React.Fragment>
<Route exact path="/public/login" component={LoginComponent}></Route>
</React.Fragment>
Answer the question
In order to leave comments, you need to log in
Solution: The
problem was with browserrouter
I added publicPath: '/' to output in webpack.config.js and that solved the problem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question