-1
const [date, setDate] = useState(new Date().toLocaleDateString('fr-FR'));
You should change this line again it will work
Source:stackexchange.com
-1
const [date, setDate] = useState(new Date().toLocaleDateString('fr-FR'));
You should change this line again it will work