How to stay on same view after refresh?

I am making react app that pulls api data to the page, simple. What i want is after I refresh the page i want to stay on the same spot i scrolled to at the time of a refresh. I have an example below.