D
D
Dev-20202021-05-21 14:29:17
React
Dev-2020, 2021-05-21 14:29:17

How to open a new page?

How to redirect user to another page? there is a link with the following code:

<NavLink to="/blog" exact className="latest-news__link">
 My Text
</NavLink>


This link redirects to the "Blog" page, but some data is not loaded and the window goes down to the very bottom and not to the top of the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Polyakov, 2021-05-22
@CIDBerlin

It would make more sense to use , including react-router-dom <Route to={}> <Component /> </Route>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question