📜  在“react-router-dom”中找不到导出“Switch”(导入为“Switch”) - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:11.402000             🧑  作者: Mango

代码示例2
import { Routes ,Route } from 'react-router-dom';
//react-router-dom v6 now uses Routes in place of Switch