moyen le plus simple de montrer la date actuelle dans la réaction
import React from "react";
// Rearrange date value to get the order you want... also replace / with a cooler separator like ⋅
export default function App() {
const current = new Date();
const date = `${current.getDate()}/${current.getMonth()+1}/${current.getFullYear()}`;
return (
<div className="App">
<h1>Current date is {date}</h1>
</div>
);
}
Brando the Mando