0

what does history.push do in reactjs?

I'm trying to look for a definition but I'm not sure if I'm goolging hard enough..

   history.push(`/group/${searchResult.id}/overview`)

What does that do?

jmesolomon
  • 563
  • 5
  • 15

1 Answers1

0

As mentioned in https://reacttraining.com/react-router/web/api/history it pushes a new entry onto the history stack

Reda Meskali
  • 275
  • 3
  • 9