React: how to run a function on any navigation?

后端 未结 0 399
[愿得一人]
[愿得一人] 2020-12-28 16:47

I have a search box on navbar (react-bootstrap navbar). I need to clear the value on any navigation or routing. How do I do that?

search box code:

<         


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