Category "browser-history"

Why history on chrome not working when added a new state?

I have pushed some states into browser but when I clicking on the back button browser it can not navigate to previous state. Although, I clicked and hold on the

Property 'background' does not exist on type 'unknown'. ReactJS/useHistory()

I'm getting this error Property 'background' does not exist on type 'unknown'.ts(2339), when I try to use this code const location = useLocation(); const backgr

How to get data from prop.location.state in react?

I try to send data through history push like that. And then I try to get the value of id that I send. The problem is when the first time rendering of compon