React-Router-Dom перенаправляйте на щелчке

import { useNavigate } from 'react-router-dom';
...
const navigate = useNavigate()
...
navigate('./create', { replace: true });
GutoTrosla