Créer un Composant
10 min
2 exercices
Niveau 2
Création de votre premier composant React
- Créez un fichier
Welcome.js. - Dans ce fichier, créez un composant fonctionnel nommé
Welcomequi retourne un élément<h1>affichant le texte : "Bienvenue dans mon application !". - Importez ce composant dans le fichier
App.jset affichez-le dans l'application.
Rendu attendu

Besoin d'aide ?
Rejoignez notre communauté officielle et ne restez plus seul à bloquer sur un problème !