K
K
KirylLapouski2018-02-23 10:30:00
JavaScript
KirylLapouski, 2018-02-23 10:30:00

How to make the site use react routing and not the web server?

If I understood everything correctly, then with the help of the Router Switch and Route components, you can control routing in react. But when specifying the address on the command line, the component I need is not displayed (the component is the simplest, there can be no error in it). The reason why the component is not displayed is that when you go to some address, the site sends a request to the server, which has completely different actions associated with this address. How to make the site use react routing and not the web server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-02-23
@Sanasol

which has completely different actions associated with this address.

Well, how do you want to give different things at the same time using the same urls?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question