现在react-router-dom中注册路由的时候Route需要被Routes包裹并且component需要替换成element并且需要添加< />
例如
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3