We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 331845d commit 4fa226fCopy full SHA for 4fa226f
src/CreateTodoButton.js
@@ -2,7 +2,16 @@ import './CreateTodoButton.css';
2
3
function CreateTodoButton() {
4
return (
5
- <button className="CreateTodoButton">+</button>
+ <button
6
+ className="CreateTodoButton"
7
+ onClick={
8
+ (event) => {
9
+ console.log('Hiciste clic')
10
+ console.log(event)
11
+ console.log(event.target)
12
+ }
13
14
+ >+</button>
15
);
16
}
17
src/TodoSearch.js
@@ -5,6 +5,12 @@ function TodoSearch() {
<input
placeholder="Buscar TODO"
className="TodoSearch"
+ onChange={(event) => {
+ console.log('Escribiste en el TodoSearch')
+ console.log(event.target.value)
+ }}
/>
0 commit comments