Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/EyesOnMe.js
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
// Code EyesOnMe Component Here

function EyesOnMe (){

const handleFocus = () => console.log('Good!')
const handleBlur = () => console.log('Hey! Eyes on me!')

return (
<div>
<button onFocus={handleFocus} onBlur={handleBlur}>Eyes on me</button>
</div>
)
}
Comment on lines +3 to +13

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function EyesOnMe (){
const handleFocus = () => console.log('Good!')
const handleBlur = () => console.log('Hey! Eyes on me!')
return (
<div>
<button onFocus={handleFocus} onBlur={handleBlur}>Eyes on me</button>
</div>
)
}
function EyesOnMe (){
const handleFocus = () => console.log('Good!')
const handleBlur = () => console.log('Hey! Eyes on me!')
return (
<button onFocus={handleFocus} onBlur={handleBlur}>Eyes on me</button>
)
}


export default EyesOnMe;
12 changes: 10 additions & 2 deletions src/components/Keypad.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
// Code Keypad Component Here

function Keypad (){

const handleChange = (e) => {
console.log("Entering password...")
}

return (
<div></div>
<div>
<p>Password</p>
<input type="password" onChange={handleChange}/>
</div>
)
}

export default Keypad;
export default Keypad;