In react-router-dom v6, 'Switch' is replaced by 'Routes'. To solve this issue we can import Routes instead of Switch and wrap your <Route /> components with a < ...
確定! 回上一頁