How can i pass a function in an React-router-dom Router

前端 未结 0 1510
后悔当初
后悔当初 2021-02-12 14:43

I want to pass a function that trigger when i go to particular path, i want to perform certain action

 const [isNavbarOpen, setNavbar]= useState(false);
    

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