S
S
Shakir Darion2020-12-05 13:32:35
React
Shakir Darion, 2020-12-05 13:32:35

What is the difference between history.replace and history.push?

History has replace and push methods as if they do the same thing.
what is the difference between history.replace and history.push ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wondermarin, 2020-12-05
@shakiriker

history.replace- replaces the entry in the history.
history.push- adds a new one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question