Bonjour,
je suis nouveau dans React, s'il vous plait j'aimerais comprendre pourqui mon code ci-dessous n'affiche rien à l'écran.
c'est mon fichier main.jsx

import { createRoot, useState } from 'react-dom/client'

function Counter() {
// Destructuring the array returned by useState
const [count, setCount] = useState(0);

return (
<button onClick={() => setCount(count + 1)}>
Count: {count}
</button>
);
}

createRoot(document.getElementById('root')).render(
<Counter />
);
Merci d'avance pour votre aide.
cordialement,
Dibak