From 4fa226f9d37e704f1f8d274bff5d13933eaf6015 Mon Sep 17 00:00:00 2001 From: Andres Soret Date: Wed, 3 Jan 2024 19:02:47 -0500 Subject: [PATCH] Clase #6 - Eventos en React: onClick, onChange --- src/CreateTodoButton.js | 11 ++++++++++- src/TodoSearch.js | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/CreateTodoButton.js b/src/CreateTodoButton.js index 25d3a7a4e..4e0a15c01 100644 --- a/src/CreateTodoButton.js +++ b/src/CreateTodoButton.js @@ -2,7 +2,16 @@ import './CreateTodoButton.css'; function CreateTodoButton() { return ( - + ); } diff --git a/src/TodoSearch.js b/src/TodoSearch.js index 36230c971..ee7c1aa83 100644 --- a/src/TodoSearch.js +++ b/src/TodoSearch.js @@ -5,6 +5,12 @@ function TodoSearch() { { + console.log('Escribiste en el TodoSearch') + console.log(event) + console.log(event.target) + console.log(event.target.value) + }} /> ); }