It's because the react-router context isn't set in that component. Since its the <Router> component that sets the context you could use useHistory in a ...
確定! 回上一頁