2021年4月23日星期五

how to detect previous url path react

I am using React, and I am trying to detect the previous path / url that the user is coming from within my app. so if they are coming from /register and land on /index, then how do I log, on /index, that the user came from /register. Is this possible?

https://stackoverflow.com/questions/67237317/how-to-detect-previous-url-path-react April 24, 2021 at 06:04AM

没有评论:

发表评论