How to remove react router location state for previous location after navigating to another page using hooks?

后端 未结 0 931
北荒
北荒 2021-01-24 17:05

I want to remove the location state after navigating to other page.

Suppose I am in page1. I render some state using useEffect.

const Page1 =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题