To get the current route with React Router, use the useLocation() hook. Use withRouter higher-order component in class component for current URL pathname.
確定! 回上一頁