S
S
saiasasd2021-11-05 15:43:11
React
saiasasd, 2021-11-05 15:43:11

How to change URL after button click?

Hello. You need to change the URL when you click on the button. For example, I click on the "logout" button, the page should change to /login

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Frontend developer, 2021-11-05
@markak

https://v5.reactrouter.com/web/example/basic
on the right is an example with a menu and code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question