React
Fondamental
Handling form input with controlled components

Type d'évaluation

Mise en situation réelle

Analyse

Intelligence Artificielle

Compétences ciblées

react
forms
controlled-components
usestate
events

Scénario Technique

Context A registration form needs to capture a user's name and email before submission. The Problem The form currently reads values directly from the DOM using document.getElementById, bypassing React's state management. Constraints Convert each input into a controlled component using useState. Bind the value and onChange props correctly. Log the form data on submit without reloading the page. Expected Deliverable A React form component using controlled inputs, with state-bound values and a submit handler that prevents default browser behavior.

Prêt à évaluer ce talent ?

Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.

Commencer le Défis