I have an app for viewing all users and for searching by id. When I search for user 1 and then 2 or another user, and I want to go back to my previous result, I can't.
I am trying to implement the history API popState and PushState. I have read the documentation and watched tutorials, but i am still confused about where to implement it in my code.