F
F
frolldoll2018-04-27 22:44:55
React
frolldoll, 2018-04-27 22:44:55

Why are pages refreshing in react app??

How much are the pages in react updated for me? it's a spa, but when I click on the link, there is a reload, what could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Archakov Dennis, 2018-04-27
@archakov06

Poor react. Unfortunately, Dan Abramov has not yet come up with an artificial intelligence that would solve all the problems associated with react for us.
Read about routes, routing - https://www.google.ru/search?q=react+router
You need to connect react-router to your project

I
Insolation, 2018-04-27
@Insolation

How did you make the transitions?
If just links, then go read what they do.
If routes, then it's strange.
PS Well, we are not Wangs here, at least you showed the code or something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question