Answer the question
In order to leave comments, you need to log in
How to preload routes in ReactJS?
Tell me how to correctly preload the data before the transition to the route occurs. I wanted to write a middleware, but I don't know if there is a better solution.
To make it clearer, here is an example - https://www.lingvolive.com/ru-ru
When you visit any section, a progress bar appears at the top. Is there any guide, library for implementing this method?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question