How to refresh a Page using react-route Link

前端 未结 3 812
一向
一向 2020-12-24 04:42

I am trying to refresh a page using react-route Link. But the way I have implemented it goes to the URL one step back.(as an example if the URL was ../client/home/register a

3条回答
  •  误落风尘
    2020-12-24 05:23

    Try like this.

    You must give a function as value to onClick()

    You button:

     
    

    refreshPage function:

    function refreshPage(){ 
        window.location.reload(); 
    }
    

提交回复
热议问题