A
A
antonini6662019-11-16 18:13:42
JavaScript
antonini666, 2019-11-16 18:13:42

Is it possible to assign a page transition to a single button using react router?

It is necessary with the help of react routera to navigate through the pages with one button in a circle. Click on the button to go to the next page

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_, 2019-11-16
@antonini666

Use history.push
history is already in react-router's dependencies.

A
abberati, 2019-11-16
@abberati

It is possible, based on the params that the router transmits, to calculate the value of the next url. And in Link substitute this dynamic url.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question