La solution du BONUS 1 de l'exercice 1 (Proxy component) fait ressortir un WARNING dans la console :
Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
input
Button
div
Header
App index.js:1
Il faut en fait indiquer "defaultValue" dans la champ "INPUT" à la place de "value" :
<inputstyle={{backgroundColor:'lightblue',border:'none',padding:'6px 6px',cursor: 'pointer'}}type="Button"defaultValue="👍"/>
La solution du BONUS 1 de l'exercice 1 (Proxy component) fait ressortir un WARNING dans la console :
Il faut en fait indiquer "defaultValue" dans la champ "INPUT" à la place de "value" :