📜  在 react-router-dom v6 中获取状态 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:04:22.708000             🧑  作者: Mango
代码示例1
import { useLocation } from 'react-router-dom';
const location = useLocation()
const { state } = location.state