Obtenir un état dans le v6 React-Router-Dom
import { useLocation } from 'react-router-dom';
const location = useLocation()
const { state } = location.state
Blue Baboon
import { useLocation } from 'react-router-dom';
const location = useLocation()
const { state } = location.state