A
A
Alexey Yurievich2021-07-17 21:25:19
React
Alexey Yurievich, 2021-07-17 21:25:19

React route how to properly create a redirect. When you click on the search edge, should it redirect to another component?

How to implement a button that, when clicked, loads another component. Wrap it in It doesn't work, because the button doesn't call onSubmitHandle on the form in this case.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yurievich, 2021-07-18
@Burn-the-son

The whole point was that I wrapped everything in<Router>

A
abberati, 2021-07-17
@abberati

history.push
Look in the documentation of the router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question